From db786fc21100737dde9633440072299d17a45350 Mon Sep 17 00:00:00 2001 From: Gabriele Date: Tue, 14 Feb 2017 22:08:43 +0100 Subject: [PATCH] Fixing nxos_portchannel bug caused by wrong regex (#20850) --- lib/ansible/modules/network/nxos/nxos_portchannel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/nxos/nxos_portchannel.py b/lib/ansible/modules/network/nxos/nxos_portchannel.py index 3be1509459..863e992dd2 100644 --- a/lib/ansible/modules/network/nxos/nxos_portchannel.py +++ b/lib/ansible/modules/network/nxos/nxos_portchannel.py @@ -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):