mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
8a86746223
commit
046d430a26
1 changed files with 2 additions and 0 deletions
|
@ -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 {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue