mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Integration tests should test diff2's IGNORE* (#2292)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
@ -186,7 +186,14 @@ func ByZone(existing models.Records, dc *models.DomainConfig, compFunc Comparabl
|
||||
|
||||
// Only return the messages. The caller has the list of records needed to build the new zone.
|
||||
instructions, err := byHelper(analyzeByRecord, existing, dc, compFunc)
|
||||
return justMsgs(instructions), len(instructions) != 0, err
|
||||
changes := false
|
||||
for i, _ := range instructions {
|
||||
//fmt.Printf("DEBUG: ByZone #%d: %v\n", i, ii)
|
||||
if instructions[i].Type != REPORT {
|
||||
changes = true
|
||||
}
|
||||
}
|
||||
return justMsgs(instructions), changes, err
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user