]> git.ipfire.org Git - thirdparty/samba.git/commit
python:netcmd:gpo: fix crash when updating an MOTD GPO
authorAndreas Hasenack <andreas.hasenack@canonical.com>
Tue, 18 Feb 2025 15:43:46 +0000 (12:43 -0300)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 25 Mar 2025 04:20:45 +0000 (04:20 +0000)
commite87e20c04d90292e3a5caac8ea3105b16f948ed3
tree1007f117f1549d382d972327ac1f6d9002fce6c4
parent969cb41e06247949c3992cab25e824795204e31e
python:netcmd:gpo: fix crash when updating an MOTD GPO

When the policy exists already, there is no exception and the code
tries to use the "data" variable, but it doesn't exist because it was
only defined in the exception handling.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15774

Signed-off-by: Andreas Hasenack <andreas.hasenack@canonical.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
python/samba/netcmd/gpo.py
selftest/knownfail.d/samba-tool-gpo [deleted file]