Skip to content

Commit

Permalink
Reverted not needed modifciations on OVH provider for changes order
Browse files Browse the repository at this point in the history
  • Loading branch information
troll-os committed Oct 28, 2024
1 parent 1292dac commit d94f966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions provider/ovh/ovh.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ func (p *OVHProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) e

allChanges := make([]ovhChange, 0, countTargets(changes.Create, changes.UpdateNew, changes.UpdateOld, changes.Delete))

allChanges = append(allChanges, newOvhChange(ovhCreate, changes.Create, zones, records)...)
allChanges = append(allChanges, newOvhChange(ovhCreate, changes.UpdateNew, zones, records)...)

allChanges = append(allChanges, newOvhChange(ovhDelete, changes.UpdateOld, zones, records)...)
allChanges = append(allChanges, newOvhChange(ovhDelete, changes.Delete, zones, records)...)

allChanges = append(allChanges, newOvhChange(ovhCreate, changes.UpdateNew, zones, records)...)
allChanges = append(allChanges, newOvhChange(ovhCreate, changes.Create, zones, records)...)

log.Infof("OVH: %d changes will be done", len(allChanges))

eg, _ := errgroup.WithContext(ctx)
Expand Down

0 comments on commit d94f966

Please sign in to comment.