]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/scripting/samba_dnsupdate: remove unreachable code
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 11 Oct 2018 09:54:32 +0000 (22:54 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 17 Jul 2020 07:17:40 +0000 (07:17 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
source4/scripting/bin/samba_dnsupdate

index 44eb1cadd2718101b224b558a2975733bca42b9d..1eac41dd77f3ced701b51cc6078824e13eae59d0 100755 (executable)
@@ -569,13 +569,8 @@ def call_samba_tool(d, op="add", zone=None):
         if op == "add" and d.existing_port is not None:
             print("Not handling modify of existing SRV %s using samba-tool" % d)
             return False
-            op = "update"
-            args = [rpc_server_ip, zone, short_name, "SRV",
-                    "%s %s %s %s" % (d.existing_weight,
-                                     d.existing_port, "0", "100"),
-                    "%s %s %s %s" % (d.dest, d.port, "0", "100")]
-        else:
-            args = [rpc_server_ip, zone, short_name, "SRV", "%s %s %s %s" % (d.dest, d.port, "0", "100")]
+        args = [rpc_server_ip, zone, short_name, "SRV",
+                "%s %s %s %s" % (d.dest, d.port, "0", "100")]
     if d.type == "CNAME":
         if d.existing_cname_target is None:
             args = [rpc_server_ip, zone, short_name, "CNAME", d.dest]