mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-10-12 11:33:18 +03:00
Compare commits
1 Commits
0.10.3-alt
...
fix_check_
Author | SHA1 | Date | |
---|---|---|---|
527c4f8172 |
@@ -36,8 +36,8 @@ def check_windows_mapping_enabled(storage):
|
|||||||
flag = storage.get_key_value(windows_mapping_enable_flag)
|
flag = storage.get_key_value(windows_mapping_enable_flag)
|
||||||
|
|
||||||
result = True
|
result = True
|
||||||
|
flag = str(flag)
|
||||||
if flag and '0' == str(flag):
|
if flag and '0' == flag:
|
||||||
result = False
|
result = False
|
||||||
|
|
||||||
return result
|
return result
|
||||||
@@ -48,9 +48,9 @@ def check_module_enabled(storage, module_name):
|
|||||||
flag = storage.get_key_value(gpupdate_module_flag)
|
flag = storage.get_key_value(gpupdate_module_flag)
|
||||||
|
|
||||||
result = None
|
result = None
|
||||||
|
flag = str(flag)
|
||||||
if flag:
|
if flag:
|
||||||
if '1' == str(flag):
|
if '1' == flag:
|
||||||
result = True
|
result = True
|
||||||
else:
|
else:
|
||||||
result = False
|
result = False
|
||||||
|
Reference in New Issue
Block a user