summaryrefslogtreecommitdiffstats
path: root/ipaplatform
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-12-16 16:10:03 +0100
committerJan Cholasta <jcholast@redhat.com>2015-12-23 07:57:55 +0100
commitfba70a0346dabb0a9752c9552a8f0757586979c0 (patch)
tree3c3882b1866cc903a64a69877a17c7919b78b621 /ipaplatform
parent403652b5b9cc5e80869019067cbe1424b5c02bd1 (diff)
downloadfreeipa-fba70a0346dabb0a9752c9552a8f0757586979c0.tar.gz
freeipa-fba70a0346dabb0a9752c9552a8f0757586979c0.tar.xz
freeipa-fba70a0346dabb0a9752c9552a8f0757586979c0.zip
Use module variables for timedate_services
Explicitly store timedate services in module variable is safer than doind just unused import. Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaplatform')
-rw-r--r--ipaplatform/fedora/services.py2
-rw-r--r--ipaplatform/redhat/services.py2
-rw-r--r--ipaplatform/rhel/services.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/ipaplatform/fedora/services.py b/ipaplatform/fedora/services.py
index 33becc219..5b1dfc824 100644
--- a/ipaplatform/fedora/services.py
+++ b/ipaplatform/fedora/services.py
@@ -56,6 +56,6 @@ class FedoraServices(redhat_services.RedHatServices):
# Objects below are expected to be exported by platform module
-from ipaplatform.redhat.services import timedate_services
+timedate_services = redhat_services.timedate_services
service = fedora_service_class_factory
knownservices = FedoraServices()
diff --git a/ipaplatform/redhat/services.py b/ipaplatform/redhat/services.py
index ca2a9481e..6fad2288b 100644
--- a/ipaplatform/redhat/services.py
+++ b/ipaplatform/redhat/services.py
@@ -304,6 +304,6 @@ class RedHatServices(base_services.KnownServices):
# Objects below are expected to be exported by platform module
-from ipaplatform.base.services import timedate_services
+timedate_services = base_services.timedate_services
service = redhat_service_class_factory
knownservices = RedHatServices()
diff --git a/ipaplatform/rhel/services.py b/ipaplatform/rhel/services.py
index 861738eb2..980c84a96 100644
--- a/ipaplatform/rhel/services.py
+++ b/ipaplatform/rhel/services.py
@@ -56,6 +56,6 @@ class RHELServices(redhat_services.RedHatServices):
# Objects below are expected to be exported by platform module
-from ipaplatform.redhat.services import timedate_services
+timedate_services = redhat_services.timedate_services
service = rhel_service_class_factory
knownservices = RHELServices()