vmware-archive / ansible-module-vcloud-director

ansible-module-vcloud-director
Other
111 stars 86 forks source link

Fixing module_utils import for collections #212

Closed 80h closed 1 year ago

80h commented 2 years ago

Now the following error:

fatal: [localhost]: FAILED! => {"msg": "Could not find imported module support code for ansible_collections.vmware.vcloud_director.plugins.modules.vcd_vapp. Looked for (['ansible.module_utils.vcd.VcdAnsibleModule', 'ansible.module_utils.vcd'])"}

Problem:

_When coding with module_utils in a collection, the Python import statement needs to take into account the FQCN along with the ansible_collections convention. The resulting Python import will look like from ansible_collections.{namespace}.{collection}.plugins.moduleutils.{util} import {something}

link to documentation

goetzk commented 1 year ago

Anyone from VMWare still looking at this repo? It would be good to see this merged, older ansibles are being deprecated and the fix here has been waiting for a year.

sgutermann commented 1 year ago

@mukultaneja can we get this fix merged please?

goetzk commented 1 year ago

I'm guessing with this closed we're relying on #214 , but given the state of this repository I suspect it'll be something which just drives away users from the platform :|