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