Skip to content

Commit

Permalink
MTV-1569 | Migration code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Necas <[email protected]>
  • Loading branch information
mnecas committed Oct 7, 2024
1 parent fd1180e commit e4702a8
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 @@ -1146,7 +1146,7 @@ func (r *Migration) execute(vm *plan.VMStatus) (err error) {
return err
}

if pod != nil && pod.Status.Phase != core.PodSucceeded && pod.Status.Phase != core.PodFailed {
if pod != nil && pod.Status.Phase == core.PodRunning {
err := r.kubevirt.UpdateVmByConvertedConfig(vm, pod, step)
if err != nil {
return liberr.Wrap(err)
Expand Down

0 comments on commit e4702a8

Please sign in to comment.