Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rahushen authored and trishnaguha committed Oct 13, 2017
1 parent 8a86746 commit 046d430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ansible/modules/network/nxos/nxos_portchannel.py
Expand Up @@ -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 {}

Expand Down

0 comments on commit 046d430

Please sign in to comment.