mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
d42c26c542
commit
71c4d3e979
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user