1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #~: fix filter wilds and zombies (#2088)

This commit is contained in:
Jorge Miguel Lobo Escalona 2022-05-26 12:45:36 +02:00 committed by GitHub
parent 0ef457efb7
commit b59dc6b355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ export const getHostZombies = (host = {}) => {
const vms = [host?.TEMPLATE?.VM ?? []]
.flat()
.filter((vm) => vm.VCENTER_TEMPLATE === 'YES')
.filter((vm) => vm?.IMPORT_TEMPLATE)
return vms.filter((vm) => vm?.VM_NAME && zombies.includes(vm?.VM_NAME))
}
@ -154,10 +154,11 @@ export const getHostWilds = (host = {}) => {
const vms = [host?.TEMPLATE?.VM ?? []]
.flat()
.filter((vm) => vm.VCENTER_TEMPLATE === 'YES')
.filter((vm) => vm?.IMPORT_TEMPLATE)
return vms.filter((vm) => vm?.VM_NAME && wilds.includes(vm?.VM_NAME))
}
/**
* Returns list of Numa available from the host.
*