1
0
Fork 0
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:
Dag Wieers 2018-07-06 13:32:39 +02:00 committed by GitHub
parent 5635848654
commit f98a0b521f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 13 deletions

View file

@ -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]