mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 05:06:05 +08:00
* fix: isStopping state condition
* refactor: remove unused variable
---------
(cherry picked from commit b72f523ddf)
Signed-off-by: Andy Lee <andy.lee@suse.com>
Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -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
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user