s4-dns: fixed registration of multiple IPs in samba_dnsupdate
authorAndrew Tridgell <tridge@samba.org>
Sun, 14 Nov 2010 23:54:50 +0000 (10:54 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 15 Nov 2010 10:47:38 +0000 (21:47 +1100)
bitten by python object references again!

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/bin/samba_dnsupdate

index 072f818a5dc680d203e5e452c9c96eaa19b19025..6a20173a148120d9a9eeecc7c8be93deab31c595 100755 (executable)
@@ -360,7 +360,7 @@ for d in dns_list:
     if d.type == 'A' and d.ip == "$IP":
         d.ip = IPs[0]
         for i in range(len(IPs)-1):
-            d2 = d
+            d2 = dnsobj(str(d))
             d2.ip = IPs[i+1]
             dns_list.append(d2)