Skip to content

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

Open
@ShellPower11

Description

@ShellPower11

Describe the bug

if paths[0] == 'Datacenters':
paths.remove('Datacenters')
return '/' + '/'.join(paths)
)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions