1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixed regex to pick correct items (#42557)

This commit is contained in:
Nilashish Chakraborty 2018-07-11 19:20:50 +05:30 committed by Trishna Guha
parent 42eaa00371
commit fa624eba29

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