1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-22 18:04:09 +03:00

The location to add policy data has been moved

This commit is contained in:
Valery Sinelnikov 2024-09-04 10:33:43 +04:00
parent ab79f169e8
commit 3ddd9462ea
2 changed files with 2 additions and 3 deletions

View File

@ -108,8 +108,6 @@ class samba_backend(applier_backend):
raise exc
if self._is_machine_username:
self.storage.wipe_hklm()
self.storage.wipe_user(self.storage.get_info('machine_sid'))
for gptobj in machine_gpts:
try:
gptobj.merge_machine()
@ -127,7 +125,6 @@ class samba_backend(applier_backend):
except Exception as exc:
log('F3')
raise exc
self.storage.wipe_user(self.sid)
# Merge user settings if UserPolicyMode set accordingly
# and user settings (for HKCU) are exist.

View File

@ -23,6 +23,7 @@ from enum import Enum, unique
from samba.gp_parse.gp_pol import GPPolParser
from storage import registry_factory
from storage.dconf_registry import add_to_dict
from .polfile import (
read_polfile
@ -154,6 +155,7 @@ def get_merger(preference_type):
class gpt:
def __init__(self, gpt_path, sid, username='Machine', gpo_info=None):
add_to_dict(gpt_path, username, gpo_info)
self.path = gpt_path
self.username = username
self.sid = sid