From 25d5d10f51415024a2c9279c1dc78c66e01e3990 Mon Sep 17 00:00:00 2001 From: Nilashish Chakraborty Date: Wed, 11 Jul 2018 19:20:50 +0530 Subject: [PATCH] Fixed regex to pick correct items (#42557) (cherry picked from commit fa624eba29573fe5dcaab33aff25143454b6f96c) --- lib/ansible/modules/network/ios/ios_linkagg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {}