From 482e3e944fa00c21fdea0d13ba2f1cbca7b67875 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Wed, 17 Apr 2019 16:58:06 +0200 Subject: [PATCH] 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. --- roles/ipaserver/library/ipaserver_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ipaserver/library/ipaserver_test.py b/roles/ipaserver/library/ipaserver_test.py index c9f7cce2..a451b9f5 100644 --- a/roles/ipaserver/library/ipaserver_test.py +++ b/roles/ipaserver/library/ipaserver_test.py @@ -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: -- GitLab