mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 11:24:50 +00:00
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:
@@ -730,7 +730,7 @@ def main():
|
|||||||
adtrust.install_check(False, options, api)
|
adtrust.install_check(False, options, api)
|
||||||
|
|
||||||
except (RuntimeError, ValueError, ScriptError) as e:
|
except (RuntimeError, ValueError, ScriptError) as e:
|
||||||
module.fail_json(msg=str(e))
|
ansible_module.fail_json(msg=str(e))
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user