Use correct service name in cainstance.backup_config

https://fedorahosted.org/freeipa/ticket/4754

Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
Jan Cholasta authored and Martin Kosek committed 2014-11-21 13:22:11 +01:00
1 parent d42c26c542
commit 71c4d3e979
1 file changed
+2 -1
+2 -1
View File
@@ -1699,7 +1699,8 @@ def backup_config(dogtag_constants=None):
if dogtag_constants is None:
dogtag_constants = dogtag.configured_constants()
if services.knownservices.dogtag.is_running():
if services.knownservices[dogtag_constants.SERVICE_NAME].is_running(
dogtag_constants.PKI_INSTANCE_NAME):
raise RuntimeError("Dogtag must be stopped when creating backup of %s"
% dogtag_constants.CS_CFG_PATH)
shutil.copy(dogtag_constants.CS_CFG_PATH,