vmware.vmware_rest icon indicating copy to clipboard operation
vmware.vmware_rest copied to clipboard

vmware.vmware_rest.datastore_moid

Open StefanSchwiedel opened this issue 2 years ago • 0 comments

Trying to lookup the datastore or ESX host moid always (really in any case) fails with the same error. Reproducable on fresh installations

Module Version: vmware-vmware_rest-2.1.5

OS: Redhat 7.9 ansible-playbook 2.9.27 ansible python module location = /usr/lib/python3.6/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.6.8 (default, Aug 13 2020, 07:46:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

OS: Debian 11 ansible-playbook 2.10.8 ansible python module location = /usr/lib/python3/dist-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]

Package            Version
--------------------------
aiohttp               3 .8.1

Ansible Playbook

- name: debug datastore moid
   vars:
      connection_args:
        vcenter_hostname: "vcenter.test"
        vcenter_username: "[email protected]"
        vcenter_password: "1234"
   debug:
      msg: "{{ lookup('vmware.vmware_rest.datastore_moid', '/datacenter_name/datastore/datastore_name', connection_args) }}"

ERROR Message

An unhandled exception occurred while running the lookup plugin 'vmware.vmware_rest.datastore_moid'. Error was a <class 'RecursionError'>, original message: maximum recursion depth exceeded while pickling an object

StefanSchwiedel avatar Jun 20 '22 11:06 StefanSchwiedel