samba-tool spn: remove unused variables
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sat, 27 Oct 2018 11:33:30 +0000 (00:33 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Nov 2018 04:08:14 +0000 (05:08 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
python/samba/netcmd/spn.py

index 62884a4ec09776733443ca8edc0e0dcfe9febe67..f0069460e3eff9d0dad18f54085471d60d14220f 100644 (file)
@@ -58,8 +58,6 @@ class cmd_spn_list(Command):
             scope=ldb.SCOPE_SUBTREE, attrs=["servicePrincipalName"])
         if len(res) > 0:
             spns = res[0].get("servicePrincipalName")
-            found = False
-            flag = ldb.FLAG_MOD_ADD
             if spns is not None:
                 self.outf.write(
                     "User %s has the following servicePrincipalName: \n" %