mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 14:40:16 -05:00
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:
1 parent
05984f171b
commit
1a7a1f955e
1 file changed
+2
-14
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user