1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

gp: Fix startup scripts add not always set runonce

The runonce is always being set because neither
True nor False is ever None.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov 15 02:09:45 UTC 2022 on sn-devel-184
This commit is contained in:
David Mulder 2022-11-14 10:50:28 -07:00 committed by Jeremy Allison
parent 4321be515b
commit 15696da015

View File

@ -3223,7 +3223,7 @@ samba-tool gpo manage scripts startup add {31B2F340-016D-11D2-945F-00C04FB984F9}
if run_as is not None: if run_as is not None:
run_as_elm = ET.SubElement(listelement, 'run_as') run_as_elm = ET.SubElement(listelement, 'run_as')
run_as_elm.text = run_as run_as_elm.text = run_as
if run_once is not None: if run_once:
ET.SubElement(listelement, 'run_once') ET.SubElement(listelement, 'run_once')
out = BytesIO() out = BytesIO()