samba-tool drs showrepl: remove unused search
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sun, 11 Mar 2018 22:50:41 +0000 (11:50 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 May 2018 23:57:17 +0000 (01:57 +0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/drs.py

index f852fa1..ab849ac 100644 (file)
@@ -161,7 +161,6 @@ class cmd_drs_showrepl(Command):
 
         # show domain information
         ntds_dn = self.samdb.get_dsServiceName()
-        server_dns = self.samdb.search(base="", scope=ldb.SCOPE_BASE, attrs=["dnsHostName"])[0]['dnsHostName'][0]
 
         (site, server) = drs_parse_ntds_dn(ntds_dn)
         try: