From b72f523ddf13321cb2f0753a56b4fb7b5373d024 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Tue, 29 Jul 2025 12:58:38 +0800 Subject: [PATCH] fix: isStopping state condition (#431) * fix: isStopping state condition Signed-off-by: Andy Lee * refactor: remove unused variable Signed-off-by: Andy Lee --------- Signed-off-by: Andy Lee --- pkg/harvester/models/kubevirt.io.virtualmachine.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/harvester/models/kubevirt.io.virtualmachine.js b/pkg/harvester/models/kubevirt.io.virtualmachine.js index 2d783ea6..e6043fb7 100644 --- a/pkg/harvester/models/kubevirt.io.virtualmachine.js +++ b/pkg/harvester/models/kubevirt.io.virtualmachine.js @@ -32,8 +32,6 @@ const PAUSED_VM_MODAL_MESSAGE = const POD_STATUS_NOT_SCHEDULABLE = 'POD_NOT_SCHEDULABLE'; const POD_STATUS_CONTAINER_FAILING = 'POD_CONTAINER_FAILING'; -// eslint-disable-next-line no-unused-vars -const POD_STATUS_NOT_READY = 'POD_NOT_READY'; const POD_STATUS_FAILED = 'POD_FAILED'; const POD_STATUS_CRASHLOOP_BACKOFF = 'POD_CRASHLOOP_BACKOFF'; @@ -742,6 +740,7 @@ export default class VirtVm extends HarvesterResource { if (this && !this.isVMExpectedRunning && this.isVMCreated && + this.vmi?.status?.phase !== undefined && this.vmi?.status?.phase !== VMIPhase.Succeeded && this.vmi?.status?.phase !== VMIPhase.Pending ) {