summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/opendnssecinstance.py
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-11-18 15:42:23 +0100
committerMartin Basti <mbasti@redhat.com>2016-11-24 16:30:32 +0100
commit6409abf1a60f3548203e6607a2b157ff72af2c89 (patch)
tree2d1c06b3fc85d91f9d4bea67162a1ab9dcdca07e /ipaserver/install/opendnssecinstance.py
parent2cbaf156045769b54150e4d4c3c1071f164a16fb (diff)
downloadfreeipa-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 'ipaserver/install/opendnssecinstance.py')
-rw-r--r--ipaserver/install/opendnssecinstance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/opendnssecinstance.py b/ipaserver/install/opendnssecinstance.py
index ea6cb51d4..39b81b6b4 100644
--- a/ipaserver/install/opendnssecinstance.py
+++ b/ipaserver/install/opendnssecinstance.py
@@ -317,7 +317,7 @@ class OpenDNSSECInstance(service.Service):
except Exception:
pass
- ods_exporter = services.service('ipa-ods-exporter')
+ ods_exporter = services.service('ipa-ods-exporter', api)
try:
ods_exporter.stop()
except Exception: