1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00

gpo: Clarify the contents of deleted_gpo_list in process_group_policy

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
David Mulder
2020-08-06 13:30:36 -06:00
committed by David Mulder
parent bc38d3afe3
commit 0a7e2e3984
3 changed files with 16 additions and 16 deletions

View File

@ -35,10 +35,10 @@ class gp_scripts_ext(gp_pol_ext):
return 'Unix Settings/Scripts'
def process_group_policy(self, deleted_gpo_list, changed_gpo_list, cdir=None):
for gpo in deleted_gpo_list:
self.gp_db.set_guid(gpo[0])
if str(self) in gpo[1]:
for attribute, script in gpo[1][str(self)].items():
for guid, settings in deleted_gpo_list:
self.gp_db.set_guid(guid)
if str(self) in settings:
for attribute, script in settings[str(self)].items():
os.unlink(script)
self.gp_db.delete(str(self), attribute)
self.gp_db.commit()