mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixing nxos_portchannel bug caused by wrong regex (#20850)
This commit is contained in:
parent
f3fe1eef03
commit
db786fc211
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ def get_value(arg, config, module):
|
||||||
|
|
||||||
def check_interface(module, netcfg):
|
def check_interface(module, netcfg):
|
||||||
config = str(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
|
value = False
|
||||||
try:
|
try:
|
||||||
if REGEX.search(config):
|
if REGEX.search(config):
|
||||||
|
|
Loading…
Reference in a new issue