summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/certs.py
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-05-29 10:37:18 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-16 19:48:19 +0200
commit49fcd42f8fd71b894a0953a37f10a6c326e16048 (patch)
tree0c1324c5a3183ce20e92af183ffefde92a77147a /ipaserver/install/certs.py
parent926f8647d2a676c1dd2e446633eb76cdf1a7bf0c (diff)
downloadfreeipa-49fcd42f8fd71b894a0953a37f10a6c326e16048.tar.gz
freeipa-49fcd42f8fd71b894a0953a37f10a6c326e16048.tar.xz
freeipa-49fcd42f8fd71b894a0953a37f10a6c326e16048.zip
ipaplatform: Change service code in freeipa to use ipaplatform services
https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipaserver/install/certs.py')
-rw-r--r--ipaserver/install/certs.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/ipaserver/install/certs.py b/ipaserver/install/certs.py
index 9ee854ebf..c5380e939 100644
--- a/ipaserver/install/certs.py
+++ b/ipaserver/install/certs.py
@@ -42,6 +42,7 @@ from ipapython.dn import DN
from ipalib import pkcs10, x509, api
from ipalib.errors import CertificateOperationError
from ipalib.text import _
+from ipaplatform import services
# Apache needs access to this database so we need to create it
# where apache can reach
@@ -509,9 +510,9 @@ class CertDB(object):
else:
libpath = 'lib'
command = '/usr/%s/ipa/certmonger/%s' % (libpath, command)
- cmonger = ipaservices.knownservices.certmonger
+ cmonger = services.knownservices.certmonger
cmonger.enable()
- ipaservices.knownservices.messagebus.start()
+ services.knownservices.messagebus.start()
cmonger.start()
try:
(stdout, stderr, rc) = certmonger.start_tracking(nickname, self.secdir, password_file, command)
@@ -541,8 +542,8 @@ class CertDB(object):
# Always start certmonger. We can't untrack something if it isn't
# running
- cmonger = ipaservices.knownservices.certmonger
- ipaservices.knownservices.messagebus.start()
+ cmonger = services.knownservices.certmonger
+ services.knownservices.messagebus.start()
cmonger.start()
try:
certmonger.stop_tracking(self.secdir, nickname=nickname)