mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 09:13:12 +00:00
@@ -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 {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user