|
|
|
@ -312,8 +312,11 @@ def main():
|
|
|
|
pod_id = module.params['pod_id']
|
|
|
|
pod_id = module.params['pod_id']
|
|
|
|
leafs = module.params['leafs']
|
|
|
|
leafs = module.params['leafs']
|
|
|
|
if leafs is not None:
|
|
|
|
if leafs is not None:
|
|
|
|
# Users are likely to use integers for leaf IDs, which would raise an exception when using the join method
|
|
|
|
# Process leafs, and support dash-delimited leafs
|
|
|
|
leafs = [str(leaf) for leaf in module.params['leafs']]
|
|
|
|
leafs = []
|
|
|
|
|
|
|
|
for leaf in module.params['leafs']:
|
|
|
|
|
|
|
|
# Users are likely to use integers for leaf IDs, which would raise an exception when using the join method
|
|
|
|
|
|
|
|
leafs.extend(str(leaf).split('-'))
|
|
|
|
if len(leafs) == 1:
|
|
|
|
if len(leafs) == 1:
|
|
|
|
if interface_type != 'vpc':
|
|
|
|
if interface_type != 'vpc':
|
|
|
|
leafs = leafs[0]
|
|
|
|
leafs = leafs[0]
|
|
|
|
|