Fixed regex to pick correct items (#42557)

(cherry picked from commit fa624eba29)
This commit is contained in:
Nilashish Chakraborty 2018-07-11 19:20:50 +05:30 committed by Matt Clay
parent bf1a5293d4
commit 25d5d10f51

View file

@ -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 {}