From: David Mulder Date: Mon, 14 Nov 2022 17:50:28 +0000 (-0700) Subject: gp: Fix startup scripts add not always set runonce X-Git-Tag: talloc-2.4.0~545 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15696da01515692b5a3ce647e3049229e5b82393;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Nov 15 02:09:45 UTC 2022 on sn-devel-184 --- diff --git a/python/samba/netcmd/gpo.py b/python/samba/netcmd/gpo.py index c255a1c1232..eefce9d8d0e 100644 --- a/python/samba/netcmd/gpo.py +++ b/python/samba/netcmd/gpo.py @@ -3223,7 +3223,7 @@ samba-tool gpo manage scripts startup add {31B2F340-016D-11D2-945F-00C04FB984F9} if run_as is not None: run_as_elm = ET.SubElement(listelement, 'run_as') run_as_elm.text = run_as - if run_once is not None: + if run_once: ET.SubElement(listelement, 'run_once') out = BytesIO()