diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-05-29 10:37:18 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-06-16 19:48:19 +0200 |
commit | 49fcd42f8fd71b894a0953a37f10a6c326e16048 (patch) | |
tree | 0c1324c5a3183ce20e92af183ffefde92a77147a /ipaserver/install/certs.py | |
parent | 926f8647d2a676c1dd2e446633eb76cdf1a7bf0c (diff) | |
download | freeipa-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.py | 9 |
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) |