From 046d430a26bc65034f374fbbf6cd1341b8a84781 Mon Sep 17 00:00:00 2001 From: rahushen Date: Fri, 13 Oct 2017 01:08:44 -0400 Subject: [PATCH] Fixes #31056 (#31057) --- lib/ansible/modules/network/nxos/nxos_portchannel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/network/nxos/nxos_portchannel.py b/lib/ansible/modules/network/nxos/nxos_portchannel.py index 9bf8b86300b580..b781a066a1259c 100644 --- a/lib/ansible/modules/network/nxos/nxos_portchannel.py +++ b/lib/ansible/modules/network/nxos/nxos_portchannel.py @@ -203,6 +203,8 @@ def get_portchannel(module, netcfg=None): for pc in pc_table: if pc['group'] == module.params['group']: portchannel_table = pc + elif module.params['group'].isdigit() and pc['group'] == int(module.params['group']): + portchannel_table = pc except (KeyError, AttributeError, TypeError, IndexError): return {}