mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 01:41:14 -06:00
ipaserver.install.service: Don't show error message on SystemExit(0)
Additional fix for: https://fedorahosted.org/freeipa/ticket/4499 Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
parent
89c4f12425
commit
f866186239
@ -370,14 +370,15 @@ class Service(object):
|
|||||||
run_step(full_msg, method)
|
run_step(full_msg, method)
|
||||||
step += 1
|
step += 1
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
# show the traceback, so it's not lost if the cleanup method fails
|
if not (isinstance(e, SystemExit) and e.code == 0):
|
||||||
root_logger.debug("%s" % traceback.format_exc())
|
# show the traceback, so it's not lost if cleanup method fails
|
||||||
self.print_msg(' [error] %s: %s' % (type(e).__name__, e))
|
root_logger.debug("%s" % traceback.format_exc())
|
||||||
|
self.print_msg(' [error] %s: %s' % (type(e).__name__, e))
|
||||||
|
|
||||||
# run through remaining methods marked run_after_failure
|
# run through remaining methods marked run_after_failure
|
||||||
for message, method, run_after_failure in steps_iter:
|
for message, method, run_after_failure in steps_iter:
|
||||||
if run_after_failure:
|
if run_after_failure:
|
||||||
run_step(" [cleanup]: %s" % message, method)
|
run_step(" [cleanup]: %s" % message, method)
|
||||||
|
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user