From e4702a8b2864e32cfb146f02e89f7f598761f97e Mon Sep 17 00:00:00 2001 From: Martin Necas Date: Mon, 7 Oct 2024 17:34:43 +0200 Subject: [PATCH] MTV-1569 | Migration code cleanup Signed-off-by: Martin Necas --- pkg/controller/plan/migration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/plan/migration.go b/pkg/controller/plan/migration.go index 63381a774..122ebffb2 100644 --- a/pkg/controller/plan/migration.go +++ b/pkg/controller/plan/migration.go @@ -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)