You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to execute a playbook that true the tags option, the following error occurs.
The full traceback is:
File "/tmp/ansible_community.vmware.vmware_guest_info_payload_p7dnphwz/ansible_community.vmware.vmware_guest_info_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_guest_info.py", line 299, in main
File "/tmp/ansible_community.vmware.vmware_guest_info_payload_p7dnphwz/ansible_community.vmware.vmware_guest_info_payload.zip/ansible_collections/community/vmware/plugins/module_utils/vmware_rest_client.py", line 274, in get_vm_tags
dobj=vm_mid
File "/tmp/ansible_community.vmware.vmware_guest_info_payload_p7dnphwz/ansible_community.vmware.vmware_guest_info_payload.zip/ansible_collections/community/vmware/plugins/module_utils/vmware_rest_client.py", line 172, in get_tags_for_object
tag_ids = tag_assoc_svc.list_attached_tags(dobj)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/com/vmware/cis/tagging_client.py", line 1415, in list_attached_tags
'object_id': object_id,
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 345, in _invoke
return self._api_interface.native_invoke(ctx, _method_name, kwargs)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 230, in native_invoke
self._rest_converter_mode)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/bindings/converter.py", line 1117, in convert_to_vapi
binding_type.accept(visitor)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/bindings/type.py", line 40, in accept
visitor.visit(self)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/lib/visitor.py", line 43, in visit
return method(value)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/bindings/converter.py", line 327, in visit_struct
self._visit_python_dict(typ)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/bindings/converter.py", line 306, in _visit_python_dict
self.visit(field_type)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/lib/visitor.py", line 43, in visit
return method(value)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/bindings/converter.py", line 434, in visit_reference
self.visit(typ.resolved_type)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/lib/visitor.py", line 43, in visit
return method(value)
File "/root/stackoverflow/60307702/venv/lib64/python3.6/site-packages/vmware/vapi/bindings/converter.py", line 333, in visit_struct
raise CoreException(msg)
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"datacenter": "DC",
"folder": null,
"hostname": "vcenterhostname",
"moid": null,
"name": "test_vm1",
"name_match": "first",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"port": 443,
"properties": null,
"proxy_host": null,
"proxy_port": null,
"schema": "summary",
"tags": true,
"use_instance_uuid": false,
"username": "[email protected]",
"uuid": null,
"validate_certs": false
}
},
"msg": "Information gathering failed with exception Expected VapiStruct instance or python dictionary, but received str"
}
SUMMARY
I tried to execute a playbook that true the tags option, the following error occurs.
Ansible 2.9 had not the above error.
ISSUE TYPE
COMPONENT NAME
plugins/modules/vmware_guest_info.py
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
I created the following playbook, and it executed.
EXPECTED RESULTS
Gather tags and summary information for specified VM.
ACTUAL RESULTS
The error occurred.
The text was updated successfully, but these errors were encountered: