Skip to content

Commit

Permalink
better status tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Jan 22, 2020
1 parent 07e5138 commit 0cc4846
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/packages/kubevirt-plugin/src/statuses/vm/vm.ts
Expand Up @@ -247,12 +247,12 @@ export const getVMStatus = ({
isV2VConversion(vmLike, pods) || // these statuses must precede isRunning() because they do not rely on ready vms
isBeingMigrated(vmLike, migrations) || // -||-
(vm && isBeingImported(vm, pods)) || // -||-
(vm && isBeingStopped(vm, launcherPod)) ||
(vmi && isBeingStopped(vm, launcherPod)) ||
(vm && isOff(vm)) ||
isReady(vmi, launcherPod) ||
isVMError(vmLike) ||
isCreated(vmLike, launcherPod) ||
(vm && isWaitingForVMI(vm)) ||
(vmi && isCreated(vmLike, launcherPod)) ||
(!vmi && vm && isWaitingForVMI(vm)) ||
(getPhase(vmi) === 'Running' && { status: VM_STATUS_RUNNING }) ||
(['Scheduling', 'Scheduled'].includes(getPhase(vmi)) && { status: VM_STATUS_STARTING }) ||
(getPhase(vmi) === 'Pending' && { status: VM_STATUS_VMI_WAITING }) ||
Expand Down

0 comments on commit 0cc4846

Please sign in to comment.