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:
parent
0ef457efb7
commit
b59dc6b355
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user