Skip to content

Commit

Permalink
fix_sak
Browse files Browse the repository at this point in the history
  • Loading branch information
tlimoncelli committed Dec 18, 2024
1 parent 051ea45 commit 552bb76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/diff2/diff2.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ func ByRecord(existing models.Records, dc *models.DomainConfig, compFunc Compara
//
// Example usage:
//
// msgs, changes, err := diff2.ByZone(foundRecords, dc, nil)
// result, err := diff2.ByZone(foundRecords, dc, nil)
// if err != nil {
// return nil, err
// }
// if changes {
// // Generate a "correction" that uploads the entire zone.
// // (dc.Records are the new records for the zone).
// // (result.DesiredPlus are the new records for the zone).
// }
//
// Example providers include: BIND, AUTODNS
Expand Down
4 changes: 2 additions & 2 deletions providers/sakuracloud/records.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func (s *sakuracloudProvider) GetZoneRecordsCorrections(dc *models.DomainConfig,
&models.Correction{
Msg: msg,
F: func() error {
drs := make([]domainRecord, 0, len(dc.Records))
for _, rc := range dc.Records {
drs := make([]domainRecord, 0, len(result.DesiredPlus))
for _, rc := range result.DesiredPlus {
drs = append(drs, toNative(rc))
}
return s.api.UpdateZone(dc.Name, drs)
Expand Down

0 comments on commit 552bb76

Please sign in to comment.