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 authored and Martin Basti committed 2017-05-05 18:50:43 +02:00
1 parent 05984f171b
commit 1a7a1f955e
1 file changed
+2 -14
+2 -14
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: