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:
parent
42eaa00371
commit
fa624eba29
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ def parse_members(module, config, group):
|
||||||
|
|
||||||
|
|
||||||
def get_channel(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:
|
if not match:
|
||||||
return {}
|
return {}
|
||||||
|
|
Loading…
Reference in a new issue