From cc3ae35988850f85c49df155d32d64c616dbaa72 Mon Sep 17 00:00:00 2001 From: Sam Lucidi Date: Wed, 13 Nov 2024 15:26:34 -0500 Subject: [PATCH] Rename removeWarmSnapshots Signed-off-by: Sam Lucidi --- pkg/controller/plan/migration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/plan/migration.go b/pkg/controller/plan/migration.go index 90fe19221..0cce2eddb 100644 --- a/pkg/controller/plan/migration.go +++ b/pkg/controller/plan/migration.go @@ -503,12 +503,12 @@ func (r *Migration) cleanup(vm *plan.VMStatus, failOnErr func(error) bool) error return err } - r.removeWarmSnapshots(vm) + r.removeLastWarmSnapshot(vm) return nil } -func (r *Migration) removeWarmSnapshots(vm *plan.VMStatus) { +func (r *Migration) removeLastWarmSnapshot(vm *plan.VMStatus) { if vm.Warm == nil { return }