Port virt to python3 (#3167)

pull/18777/head
Michael Scherer 8 years ago committed by Matt Clay
parent 9be3e67e21
commit 1f406d4530

@ -510,7 +510,8 @@ def main():
rc = VIRT_SUCCESS
try:
rc, result = core(module)
except Exception, e:
except Exception:
e = get_exception()
module.fail_json(msg=str(e))
if rc != 0: # something went wrong emit the msg
@ -521,4 +522,5 @@ def main():
# import module snippets
from ansible.module_utils.basic import *
from ansible.module_utils.pycompat24 import get_exception
main()

@ -36,7 +36,6 @@
/cloud/misc/ovirt.py
/cloud/misc/proxmox.py
/cloud/misc/proxmox_template.py
/cloud/misc/virt.py
/cloud/misc/virt_net.py
/cloud/misc/virt_pool.py
/cloud/profitbricks/profitbricks.py

Loading…
Cancel
Save