Without this patch we will get errors like this when in-place RPC
updates start to work:
AssertionError: unexpectedly None : Successfully updated record
'192.168.0.1' to '192.168.0.1', even though the latter is of type
'A' where 'A' was expected.
That's because we have always rejected updates that try to modify an
existing record. We shouldn't.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
% (record1, dnstype1))
for dnstype2 in self.good_records:
+ if dnstype1 == dnstype2:
+ continue
+
record2 = self.good_records[dnstype2][0]
# Make sure that record2 isn't a valid entry of dnstype1.