From d94f9667d9128f8eada7badda35cdc1f58c265fc Mon Sep 17 00:00:00 2001 From: Thibaut R Date: Mon, 28 Oct 2024 09:50:15 +0100 Subject: [PATCH] Reverted not needed modifciations on OVH provider for changes order --- provider/ovh/ovh.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provider/ovh/ovh.go b/provider/ovh/ovh.go index 40609c776b..19cd0113ee 100644 --- a/provider/ovh/ovh.go +++ b/provider/ovh/ovh.go @@ -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)