mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
control_applier: Run module only in case it is enabled
This commit is contained in:
parent
08a09eca81
commit
00c1aaeb55
@ -37,10 +37,7 @@ class control_applier(applier_frontend):
|
||||
self.controls = list()
|
||||
self.__module_enabled = check_module_enabled(self.storage, self.__module_name, self.__module_enabled)
|
||||
|
||||
def apply(self):
|
||||
'''
|
||||
Trigger control facility invocation.
|
||||
'''
|
||||
def run(self):
|
||||
for setting in self.control_settings:
|
||||
valuename = setting.hive_key.rpartition('\\')[2]
|
||||
try:
|
||||
@ -56,3 +53,10 @@ class control_applier(applier_frontend):
|
||||
for cont in self.controls:
|
||||
cont.set_control_status()
|
||||
|
||||
def apply(self):
|
||||
'''
|
||||
Trigger control facility invocation.
|
||||
'''
|
||||
if self.__module_enabled:
|
||||
self.run()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user