summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriele <gabrielegerbino@gmail.com>2017-02-14 22:08:43 +0100
committerNathaniel Case <Qalthos@gmail.com>2017-02-14 16:10:46 -0500
commit757629070702da3ab3527c0fa4efa322fbbf23a4 (patch)
treecdc57bd08e0d1c425b19a3c4ed681315dae95ce1
parent4cc2a9d9d74d990930ecb639ee9f51281dc42781 (diff)
downloadansible-modules-core-757629070702da3ab3527c0fa4efa322fbbf23a4.tar.gz
Fixing nxos_portchannel bug caused by wrong regex (#20850)
-rw-r--r--network/nxos/nxos_portchannel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/network/nxos/nxos_portchannel.py b/network/nxos/nxos_portchannel.py
index aebc4219..fa70a2e6 100644
--- a/network/nxos/nxos_portchannel.py
+++ b/network/nxos/nxos_portchannel.py
@@ -299,7 +299,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):