mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-02-04 06:51:44 +00:00
* fix: isStopping state condition * refactor: remove unused variable --------- (cherry picked from commit b72f523ddf13321cb2f0753a56b4fb7b5373d024) Signed-off-by: Andy Lee <andy.lee@suse.com> Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
f1a53311ce
commit
41f78c83a7
@ -32,8 +32,6 @@ const PAUSED_VM_MODAL_MESSAGE =
|
|||||||
|
|
||||||
const POD_STATUS_NOT_SCHEDULABLE = 'POD_NOT_SCHEDULABLE';
|
const POD_STATUS_NOT_SCHEDULABLE = 'POD_NOT_SCHEDULABLE';
|
||||||
const POD_STATUS_CONTAINER_FAILING = 'POD_CONTAINER_FAILING';
|
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_FAILED = 'POD_FAILED';
|
||||||
const POD_STATUS_CRASHLOOP_BACKOFF = 'POD_CRASHLOOP_BACKOFF';
|
const POD_STATUS_CRASHLOOP_BACKOFF = 'POD_CRASHLOOP_BACKOFF';
|
||||||
@ -742,6 +740,7 @@ export default class VirtVm extends HarvesterResource {
|
|||||||
if (this &&
|
if (this &&
|
||||||
!this.isVMExpectedRunning &&
|
!this.isVMExpectedRunning &&
|
||||||
this.isVMCreated &&
|
this.isVMCreated &&
|
||||||
|
this.vmi?.status?.phase !== undefined &&
|
||||||
this.vmi?.status?.phase !== VMIPhase.Succeeded &&
|
this.vmi?.status?.phase !== VMIPhase.Succeeded &&
|
||||||
this.vmi?.status?.phase !== VMIPhase.Pending
|
this.vmi?.status?.phase !== VMIPhase.Pending
|
||||||
) {
|
) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user