[PATCHS] Fix GPO unapply log

David Mulder dmulder at suse.com
Wed Dec 6 13:25:02 UTC 2017


I thought of that shortly after submitting these. I'm about halfway
through writing a test. Will send updated patches soon.

On 12/05/2017 04:17 PM, Garming Sam wrote:
> Hi,
>
> It seems that you didn't have any particular tests for gpo unapply. It
> would be good to have a test that showed it previously failed, even if
> only at the python level. Otherwise this change seems fine.
>
> Cheers,
>
> Garming
>
>
> On 03/12/17 04:48, David Mulder wrote:
>> Fixes for 2 bugs in the gpo unapply.
>> * The apply log was being left empty. Apparently pointers to tree
>> elements can't be stored in an object, they somehow are disconnected
>> from the main tree and nothing gets logged. These have to be found each
>> time we want to add something. This is probably a bug in python ElementTree.
>> * We should only commit the earliest change from a gpo to the log.
>> Otherwise we overwrite the original value written by that gpo, and then
>> we tattoo the setting on unapply.
>>
>>  python/samba/gpclass.py | 67
>> ++++++++++++++++++++++++++++++++++++++-----------------------------
>>  1 file changed, 38 insertions(+), 29 deletions(-)
>>
>

-- 
David Mulder
SUSE Labs Software Engineer - Samba
dmulder at suse.com
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)




More information about the samba-technical mailing list