Skip to content

Commit

Permalink
MTV-1569 | Migration code cleanup (#1089)
Browse files Browse the repository at this point in the history
Related to: #1085
Fixes: https://issues.redhat.com/browse/MTV-1569

Signed-off-by: Martin Necas <[email protected]>
  • Loading branch information
mnecas committed Oct 8, 2024
1 parent 8725dac commit a387e6b
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 a387e6b

Please sign in to comment.