1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
rahushen 2017-10-13 01:08:44 -04:00 committed by Trishna Guha
parent 8a86746223
commit 046d430a26

View file

@ -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 {}