mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Display changes, even if upstream has no records. (#2531)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@@ -178,12 +178,6 @@ func ByRecord(existing models.Records, dc *models.DomainConfig, compFunc Compara
|
||||
//
|
||||
// Example providers include: BIND, AUTODNS
|
||||
func ByZone(existing models.Records, dc *models.DomainConfig, compFunc ComparableFunc) ([]string, bool, error) {
|
||||
|
||||
if len(existing) == 0 {
|
||||
// Nothing previously existed. No need to output a list of individual changes.
|
||||
return nil, true, nil
|
||||
}
|
||||
|
||||
// Only return the messages. The caller has the list of records needed to build the new zone.
|
||||
instructions, err := byHelper(analyzeByRecord, existing, dc, compFunc)
|
||||
changes := false
|
||||
|
||||
Reference in New Issue
Block a user