mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 11:54:47 +00:00
ipaserver_test: Do not show traceback in case of testing failures
ipaserver_test was not handling possible exceptions in the tests which resulted in a traceback. This has been fixed.
This commit is contained in:
@@ -727,6 +727,9 @@ def main():
|
|||||||
if options.setup_adtrust:
|
if options.setup_adtrust:
|
||||||
adtrust.install_check(False, options, api)
|
adtrust.install_check(False, options, api)
|
||||||
|
|
||||||
|
except (RuntimeError, ValueError, ScriptError) as e:
|
||||||
|
module.fail_json(msg=str(e))
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(ipa_tempdir, ignore_errors=True)
|
shutil.rmtree(ipa_tempdir, ignore_errors=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user