mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-08 14:15:30 +08:00
Update to new IncrementalDiff interface
This commit is contained in:
parent
d2ded53119
commit
a2fd3be532
1 changed files with 4 additions and 1 deletions
|
@ -176,7 +176,10 @@ func (c *ApiClient) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Cor
|
|||
models.PostProcessRecords(prunedRecords)
|
||||
|
||||
differ := diff.New(dc)
|
||||
_, toCreate, toDelete, toModify := differ.IncrementalDiff(prunedRecords)
|
||||
_, toCreate, toDelete, toModify, err := differ.IncrementalDiff(prunedRecords)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
for _, del := range toDelete {
|
||||
record := del.Existing
|
||||
|
|
Loading…
Add table
Reference in a new issue