mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
committed by
Jan Cholasta
parent
403652b5b9
commit
fba70a0346
@@ -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()
|
||||
|
@@ -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()
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user