From a387e6b77d19c1f4790bee0fe5ef71a49f66a5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ne=C4=8Das?= Date: Mon, 7 Oct 2024 17:56:28 +0200 Subject: [PATCH] MTV-1569 | Migration code cleanup (#1089) Related to: https://github.com/kubev2v/forklift/pull/1085 Fixes: https://issues.redhat.com/browse/MTV-1569 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)