pull/31688/head
rahushen 7 years ago committed by Trishna Guha
parent 8a86746223
commit 046d430a26

@ -203,6 +203,8 @@ def get_portchannel(module, netcfg=None):
for pc in pc_table: for pc in pc_table:
if pc['group'] == module.params['group']: if pc['group'] == module.params['group']:
portchannel_table = pc portchannel_table = pc
elif module.params['group'].isdigit() and pc['group'] == int(module.params['group']):
portchannel_table = pc
except (KeyError, AttributeError, TypeError, IndexError): except (KeyError, AttributeError, TypeError, IndexError):
return {} return {}

Loading…
Cancel
Save