1
0
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:
Данила Скачедубов 2024-01-09 18:49:15 +04:00 committed by Valery Sinelnikov
parent 4cca8b241a
commit 2d7144c1b4

View File

@ -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: