mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 01:33:09 +00:00
Fixed regex to pick correct items (#42557)
This commit is contained in:
committed by
Trishna Guha
parent
42eaa00371
commit
fa624eba29
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user