mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Don't count diff2.REPORT (informational warnings) as a "correction" (#2361)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
@ -62,7 +62,13 @@ func (d *differCompat) IncrementalDiff(existing []*models.RecordConfig) (unchang
|
||||
case diff2.REPORT:
|
||||
// Sadly the NewCompat function doesn't have an equivalent. We
|
||||
// just output the messages now.
|
||||
fmt.Print("INFO: ")
|
||||
fmt.Println(inst.MsgsJoined)
|
||||
|
||||
// TODO(tlim): When diff1 is deleted, IncremtntalDiff should add a
|
||||
// parameter to list the REPORT messages. It can also eliminate the
|
||||
// first parameter (existing) since nobody uses that in the diff2
|
||||
// world.
|
||||
case diff2.CREATE:
|
||||
cor.Desired = inst.New[0]
|
||||
toCreate = append(toCreate, cor)
|
||||
|
Reference in New Issue
Block a user