diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-11-18 15:42:23 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-11-24 16:30:32 +0100 |
commit | 6409abf1a60f3548203e6607a2b157ff72af2c89 (patch) | |
tree | 2d1c06b3fc85d91f9d4bea67162a1ab9dcdca07e /ipaclient/install | |
parent | 2cbaf156045769b54150e4d4c3c1071f164a16fb (diff) | |
download | freeipa-6409abf1a60f3548203e6607a2b157ff72af2c89.tar.gz freeipa-6409abf1a60f3548203e6607a2b157ff72af2c89.tar.xz freeipa-6409abf1a60f3548203e6607a2b157ff72af2c89.zip |
Break ipaplatform / ipalib import cycle of hell
Here is an attempt to break the import cycle of hell between ipaplatform
and ipalib. All services now pass an ipalib.api object to
services.service(). RedHatServices.__init__() still needs to do a local
import because it initializes its wellknown service dict with service
instances.
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaclient/install')
-rw-r--r-- | ipaclient/install/client.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py index b24a98916..d18d8bb1f 100644 --- a/ipaclient/install/client.py +++ b/ipaclient/install/client.py @@ -2822,7 +2822,7 @@ def _install(options): root_logger.info("%s enabled", "SSSD" if options.sssd else "LDAP") if options.sssd: - sssd = services.service('sssd') + sssd = services.service('sssd', api) try: sssd.restart() except CalledProcessError: @@ -3139,7 +3139,7 @@ def uninstall(options): root_logger.info( "IPA domain removed from current one, restarting SSSD service") - sssd = services.service('sssd') + sssd = services.service('sssd', api) try: sssd.restart() except CalledProcessError: @@ -3153,7 +3153,7 @@ def uninstall(options): "Other domains than IPA domain found, IPA domain was removed " "from /etc/sssd/sssd.conf.") - sssd = services.service('sssd') + sssd = services.service('sssd', api) try: sssd.restart() except CalledProcessError: @@ -3172,7 +3172,7 @@ def uninstall(options): "Redundant SSSD configuration file " "/etc/sssd/sssd.conf was moved to /etc/sssd/sssd.conf.deleted") - sssd = services.service('sssd') + sssd = services.service('sssd', api) try: sssd.stop() except CalledProcessError: |