diff --git a/lib/ansible/modules/network/ios/ios_linkagg.py b/lib/ansible/modules/network/ios/ios_linkagg.py index 840576eee7b..e07c18b0e57 100644 --- a/lib/ansible/modules/network/ios/ios_linkagg.py +++ b/lib/ansible/modules/network/ios/ios_linkagg.py @@ -227,7 +227,7 @@ def parse_members(module, config, group): def get_channel(module, config, group): - match = re.findall(r'interface (\S+)', config, re.M) + match = re.findall(r'^interface (\S+)', config, re.M) if not match: return {}