mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
4321be515b
commit
15696da015
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user