ansible-collection-alb
ansible-collection-alb copied to clipboard
Path modify is not working in avi_deploy_controller.py when vcenter folder name is not matching "Datacenters"
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
- 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