Make CA/KRA fail when they don't start

Since all the services throw exceptions when we're unable to
start/restart them, CA/KRA should not be an exception to it.

https://pagure.io/freeipa/issue/6766

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Stanislav Laznicka 2017-05-04 14:58:46 +02:00 committed by Martin Basti
parent 05984f171b
commit 1a7a1f955e

View File

@ -156,22 +156,10 @@ class DogtagInstance(service.Service):
ignore_errors=True)
def restart_instance(self):
try:
self.restart('pki-tomcat')
except Exception:
self.log.debug(traceback.format_exc())
self.log.critical(
"Failed to restart the Dogtag instance."
"See the installation log for details.")
self.restart('pki-tomcat')
def start_instance(self):
try:
self.start('pki-tomcat')
except Exception:
self.log.debug(traceback.format_exc())
self.log.critical(
"Failed to restart the Dogtag instance."
"See the installation log for details.")
self.start('pki-tomcat')
def stop_instance(self):
try: