From ac56f870182054942aff462bf226d52edd927468 Mon Sep 17 00:00:00 2001 From: David Mulder Date: Fri, 1 Dec 2017 11:18:55 -0700 Subject: [PATCH] gpo: Only commit the earliest change to the log Otherwise we overwrite the original value, leaving the setting tattooed on unapplied Signed-off-by: David Mulder Reviewed-by: Garming Sam Reviewed-by: Jeremy Allison --- python/samba/gpclass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/gpclass.py b/python/samba/gpclass.py index 780ef558b9..00330eb5ec 100644 --- a/python/samba/gpclass.py +++ b/python/samba/gpclass.py @@ -180,7 +180,7 @@ class gp_log: if attr is None: attr = etree.SubElement(ext, 'attribute') attr.attrib['name'] = attribute - attr.text = old_val + attr.text = old_val def retrieve(self, gp_ext_name, attribute): ''' Retrieve a stored attribute from the gp_log -- 2.34.1