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 }