mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-16 12:28:06 +08:00
Display changes, even if upstream has no records. (#2531)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
c2eb98993c
commit
a7fe17a29c
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue