summaryrefslogtreecommitdiff
path: root/python/samba/netcmd
diff options
context:
space:
mode:
authorDavid Mulder <dmulder@samba.org>2022-11-14 10:50:28 -0700
committerJeremy Allison <jra@samba.org>2022-11-15 02:09:45 +0000
commit15696da01515692b5a3ce647e3049229e5b82393 (patch)
tree0a4309f06a202ae5c37deb4ca41bb9483ee5d80d /python/samba/netcmd
parent4321be515b41ac4b129e2334f19cfd628809cf3d (diff)
downloadsamba-15696da01515692b5a3ce647e3049229e5b82393.tar.gz
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
Diffstat (limited to 'python/samba/netcmd')
-rw-r--r--python/samba/netcmd/gpo.py2
1 files changed, 1 insertions, 1 deletions
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()