1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Remove PReg parsing function from samba backend (moved to util module)

This commit is contained in:
Игорь Чудов 2019-11-28 16:36:24 +04:00
parent 2e11a2e6a5
commit 7d24501833
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -132,20 +132,6 @@ class samba_backend(applier_backend):
logging.debug('Policy files: {}'.format(self.policy_files))
def _parse_pol_file(self, polfile):
'''
Parse PReg file and return its preg object
'''
gpparser = GPPolParser()
data = None
with open(polfile, 'rb') as f:
data = f.read()
gpparser.parse(data)
#print(gpparser.pol_file.__ndr_print__())
return gpparser.pol_file
def _merge_entry(self, hive, entry):
'''
Write preg.entry to hive