diff --git a/provider/ovh/ovh.go b/provider/ovh/ovh.go index cb7ac1f2f0..501ed33073 100644 --- a/provider/ovh/ovh.go +++ b/provider/ovh/ovh.go @@ -163,8 +163,8 @@ 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(ovhDelete, changes.UpdateOld, zones, records)...) + allChanges = append(allChanges, newOvhChange(ovhDelete, changes.Delete, zones, records)...) log.Infof("OVH: %d changes will be done", len(allChanges))