ansible-collection-alb icon indicating copy to clipboard operation
ansible-collection-alb copied to clipboard

Path modify is not working in avi_deploy_controller.py when vcenter folder name is not matching "Datacenters"

Open ShellPower11 opened this issue 1 year ago • 0 comments

Describe the bug

https://github.com/vmware/ansible-collection-alb/blob/96960197371ae7545e2464fafe5804dd6a543d51/plugins/modules/avi_deploy_controller.py#L223-L225)

Its a problem when your vcenter folder is not named "Datacenters". The module is not working for me, because i have a folder named: "Datacenter". So the path modify is not working in avi_deploy_controller.py line 223-225. Maybe work with the Object ID "group-d1" and then take the name and use it to modify the path. Or give the option to define the folder in vars as workaround. At the moment i have to modify the module and exchange the script in the collection.

Reproduction steps

  1. Use avi_deploy_controller.py Module

...

Expected behavior

The module can work, even the folder name in your environment is different.

Additional context

No response

ShellPower11 avatar Nov 30 '23 12:11 ShellPower11