mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
Fixed blocking check for machine policies with multiple sections
This commit is contained in:
parent
4cca8b241a
commit
2d7144c1b4
@ -133,7 +133,7 @@ def apply(all_kde_settings, locks_dict, username = None):
|
||||
section = section.replace(')(', '][')
|
||||
file.write(f'[{section}]\n')
|
||||
for key, value in keys.items():
|
||||
lock = f"{file_name}.{section}.{key}"
|
||||
lock = f"{file_name}.{section}.{key}".replace('][', ')(')
|
||||
if lock in locks_dict and locks_dict[lock] == '1':
|
||||
file.write(f'{key}[$i]={value}\n')
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user