Skip to content

Commit

Permalink
Fix snapshot cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Necas <[email protected]>
  • Loading branch information
mnecas committed Nov 15, 2024
1 parent 71d4376 commit 10089c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/plan/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ func (r *Migration) execute(vm *plan.VMStatus) (err error) {
if r.Migration.Spec.Cutover != nil && !r.Migration.Spec.Cutover.After(time.Now()) {
vm.Phase = StorePowerState
} else if vm.Warm.NextPrecopyAt != nil && !vm.Warm.NextPrecopyAt.After(time.Now()) {
vm.Phase = CreateSnapshot
vm.Phase = r.next(vm.Phase)
}
case RemovePreviousSnapshot, RemovePenultimateSnapshot, RemoveFinalSnapshot:
step, found := vm.FindStep(r.step(vm))
Expand Down

0 comments on commit 10089c4

Please sign in to comment.