mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Add querying all bindings (#42366)
Also fix an issue with one of the check-mode tests.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user