pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0047-Use-correct-service-name-in-cainstance.backup_config.patch

e3ffab
From 5147e5f6c0aa53201938f1d3f25316089434fcc2 Mon Sep 17 00:00:00 2001
e3ffab
From: Jan Cholasta <jcholast@redhat.com>
e3ffab
Date: Fri, 21 Nov 2014 07:52:24 +0000
e3ffab
Subject: [PATCH] Use correct service name in cainstance.backup_config
e3ffab
e3ffab
https://fedorahosted.org/freeipa/ticket/4754
e3ffab
e3ffab
Reviewed-By: Martin Kosek <mkosek@redhat.com>
e3ffab
---
e3ffab
 ipaserver/install/cainstance.py | 3 ++-
e3ffab
 1 file changed, 2 insertions(+), 1 deletion(-)
e3ffab
e3ffab
diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py
e3ffab
index 0c31d21648689ad5c577e9112fefdf47857b4915..ac494917744ce0fa2d8e38ce5ce9dab6b24bdebf 100644
e3ffab
--- a/ipaserver/install/cainstance.py
e3ffab
+++ b/ipaserver/install/cainstance.py
e3ffab
@@ -1861,7 +1861,8 @@ def backup_config(dogtag_constants=None):
e3ffab
     if dogtag_constants is None:
e3ffab
         dogtag_constants = dogtag.configured_constants()
e3ffab
 
e3ffab
-    if services.knownservices.dogtag.is_running():
e3ffab
+    if services.knownservices[dogtag_constants.SERVICE_NAME].is_running(
e3ffab
+        dogtag_constants.PKI_INSTANCE_NAME):
e3ffab
         raise RuntimeError("Dogtag must be stopped when creating backup of %s"
e3ffab
                            % dogtag_constants.CS_CFG_PATH)
e3ffab
     shutil.copy(dogtag_constants.CS_CFG_PATH,
e3ffab
-- 
e3ffab
2.1.0
e3ffab