Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaupu committed Dec 23, 2024
1 parent b7c7123 commit ae4ebf5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions provider/ovh/ovh.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,10 @@ func (p *OVHProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) (
}()

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(ovhCreate, changes.UpdateOld, zones, records))
allChanges = append(allChanges, newOvhChange(ovhCreate, changes.Delete, zones, records))
allChanges = append(allChanges, newOvhChange(ovhCreate, changes.Create, zones, records)...)
allChanges = append(allChanges, newOvhChange(ovhCreate, changes.UpdateNew, zones, records)...)
allChanges = append(allChanges, newOvhChange(ovhCreate, changes.UpdateOld, zones, records)...)
allChanges = append(allChanges, newOvhChange(ovhCreate, changes.Delete, zones, records)...)

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

Expand Down

0 comments on commit ae4ebf5

Please sign in to comment.