1
0
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:
Tom Limoncelli
2023-02-07 16:53:49 -05:00
committed by GitHub
parent 325c8868ab
commit e3dc604247
5 changed files with 290 additions and 71 deletions

View File

@@ -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