Skip to content
Snippets Groups Projects
Commit 7a2d2c52 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ipareplica_prepare: Properly fail if replica_conn_check failed

If replica_conn_check failed a back trace was printed instead of a proper
failure in ansible. Thias has been fixed.
parent 44ce7263
No related branches found
No related tags found
No related merge requests found
...@@ -660,6 +660,8 @@ def main(): ...@@ -660,6 +660,8 @@ def main():
config.realm_name, options.setup_ca, 389, config.realm_name, options.setup_ca, 389,
options.admin_password, principal=options.principal, options.admin_password, principal=options.principal,
ca_cert_file=cafile) ca_cert_file=cafile)
except ScriptError as e:
ansible_module.fail_json(msg=str(e))
finally: finally:
if add_to_ipaservers: if add_to_ipaservers:
os.environ['KRB5CCNAME'] = ccache os.environ['KRB5CCNAME'] = ccache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment