mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-01 16:18:55 +00:00
Add querying all bindings (#42366)
Also fix an issue with one of the check-mode tests.
This commit is contained in:
parent
5635848654
commit
f98a0b521f
2 changed files with 11 additions and 13 deletions
|
|
@ -302,9 +302,10 @@ def main():
|
|||
interface_mode = module.params['interface_mode']
|
||||
interface_type = module.params['interface_type']
|
||||
pod_id = module.params['pod_id']
|
||||
# Users are likely to use integers for leaf IDs, which would raise an exception when using the join method
|
||||
leafs = [str(leaf) for leaf in module.params['leafs']]
|
||||
leafs = module.params['leafs']
|
||||
if leafs is not None:
|
||||
# Users are likely to use integers for leaf IDs, which would raise an exception when using the join method
|
||||
leafs = [str(leaf) for leaf in module.params['leafs']]
|
||||
if len(leafs) == 1:
|
||||
if interface_type != 'vpc':
|
||||
leafs = leafs[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue