]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
netcmd: delegation: initial value not required because of raise below
authorRob van der Linde <rob@catalyst.net.nz>
Mon, 12 Feb 2024 03:04:08 +0000 (16:04 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Feb 2024 02:41:36 +0000 (02:41 +0000)
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
python/samba/netcmd/delegation.py

index 97f4be00d611920c63ad9b699c5c77a5006f5a06..a7a48813932551828c6e6d31e02fc76a495f838f 100644 (file)
@@ -207,7 +207,6 @@ class cmd_delegation_for_any_service(Command):
     def run(self, accountname, onoff, H=None, credopts=None, sambaopts=None,
             versionopts=None):
 
-        on = False
         if onoff == "on":
             on = True
         elif onoff == "off":