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
The full traceback is:
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1658208036.0432546-5446-152058052578346/AnsiballZ_vmware_guest.py", line 107, in <module>
_ansiballz_main()
File "/root/.ansible/tmp/ansible-tmp-1658208036.0432546-5446-152058052578346/AnsiballZ_vmware_guest.py", line 99, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/root/.ansible/tmp/ansible-tmp-1658208036.0432546-5446-152058052578346/AnsiballZ_vmware_guest.py", line 47, in invoke_module
runpy.run_module(mod_name='ansible_collections.community.vmware.plugins.modules.vmware_guest', init_globals=dict(_module_fqn='ansible_collections.community.vmware.plugins.modules.vmware_guest', _modlib_path=modlib_path),
File "/usr/local/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/local/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/ansible_vmware_guest_payload_ik7gb7i0/ansible_vmware_guest_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_guest.py", line 3463, in <module>
File "/tmp/ansible_vmware_guest_payload_ik7gb7i0/ansible_vmware_guest_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_guest.py", line 3376, in main
AttributeError: 'AnsibleModule' object has no attribute 'fail'
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1658208036.0432546-5446-152058052578346/AnsiballZ_vmware_guest.py\", line 107, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1658208036.0432546-5446-152058052578346/AnsiballZ_vmware_guest.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1658208036.0432546-5446-152058052578346/AnsiballZ_vmware_guest.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.community.vmware.plugins.modules.vmware_guest', init_globals=dict(_module_fqn='ansible_collections.community.vmware.plugins.modules.vmware_guest', _modlib_path=modlib_path),\n File \"/usr/local/lib/python3.8/runpy.py\", line 207, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/local/lib/python3.8/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/local/lib/python3.8/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_vmware_guest_payload_ik7gb7i0/ansible_vmware_guest_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_guest.py\", line 3463, in <module>\n File \"/tmp/ansible_vmware_guest_payload_ik7gb7i0/ansible_vmware_guest_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_guest.py\", line 3376, in main\nAttributeError: 'AnsibleModule' object has no attribute 'fail'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
The text was updated successfully, but these errors were encountered:
vmware_guest: change fail to fail_json function
Signed-off-by: Diane Wang [email protected]
SUMMARY
Fixes#1401
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
vmware_guest
ADDITIONAL INFORMATION
Reviewed-by: Mario Lenz <[email protected]>
SUMMARY
Task failed when try to enable VBS on Windows VM
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Windows 10
STEPS TO REPRODUCE
EXPECTED RESULTS
Windows VM VBS enabled
ACTUAL RESULTS
Task failed
The text was updated successfully, but these errors were encountered: