mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
AZURE_DNS: Convert to use diff2 natively (#2058)
This commit is contained in:
@@ -215,8 +215,11 @@ func (cc *CompareConfig) addRecords(recs models.Records, storeInExisting bool) {
|
||||
|
||||
for _, rec := range z.Records {
|
||||
|
||||
label := rec.NameFQDN
|
||||
rtype := rec.Type
|
||||
//label := rec.NameFQDN
|
||||
//rtype := rec.Type
|
||||
key := rec.Key()
|
||||
label := key.NameFQDN
|
||||
rtype := key.Type
|
||||
comp := mkCompareBlob(rec, cc.compareableFunc)
|
||||
|
||||
// Are we seeing this label for the first time?
|
||||
@@ -237,7 +240,7 @@ func (cc *CompareConfig) addRecords(recs models.Records, storeInExisting bool) {
|
||||
}
|
||||
|
||||
// Are we seeing this label+rtype for the first time?
|
||||
key := rec.Key()
|
||||
//key := rec.Key()
|
||||
if _, ok := cc.keyMap[key]; !ok {
|
||||
//fmt.Printf("DEBUG: I haven't see key=%v before. Adding.\n", key)
|
||||
cc.keyMap[key] = true
|
||||
|
Reference in New Issue
Block a user