mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 13:53:23 +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,
|
||||
options.admin_password, principal=options.principal,
|
||||
ca_cert_file=cafile)
|
||||
except ScriptError as e:
|
||||
ansible_module.fail_json(msg=str(e))
|
||||
finally:
|
||||
if add_to_ipaservers:
|
||||
os.environ['KRB5CCNAME'] = ccache
|
||||
|
||||
Reference in New Issue
Block a user