ipaserver_test: Fix traceback caused by an Error

In case of an RuntimeError, ValueError or ScriptError the fail_json call
was done on module instead of ansible_module. module simply does not exist.
This commit is contained in:
Thomas Woerner
2019-04-17 16:58:06 +02:00
parent 0954f84572
commit 482e3e944f

View File

@@ -730,7 +730,7 @@ def main():
adtrust.install_check(False, options, api)
except (RuntimeError, ValueError, ScriptError) as e:
module.fail_json(msg=str(e))
ansible_module.fail_json(msg=str(e))
finally:
try: