mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 03:44:41 +00:00
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.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user