Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rahushen authored and BondAnthony committed Oct 14, 2017
1 parent 66c671f commit 9b2382f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ansible/modules/network/nxos/nxos_portchannel.py
Original file line number Diff line number Diff line change
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 9b2382f

Please sign in to comment.