mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 08:26:28 +00:00
Fixing nxos_portchannel bug caused by wrong regex (#20850)
This commit is contained in:
@@ -303,7 +303,7 @@ def get_value(arg, config, module):
|
||||
|
||||
def check_interface(module, netcfg):
|
||||
config = str(netcfg)
|
||||
REGEX = re.compile(r'\s+interface port-channel{0}*$'.format(module.params['group']), re.M)
|
||||
REGEX = re.compile(r'\s+interface port-channel{0}$'.format(module.params['group']), re.M)
|
||||
value = False
|
||||
try:
|
||||
if REGEX.search(config):
|
||||
|
||||
Reference in New Issue
Block a user