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

M #~: fix fill data hugepages (#4645)

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo 2020-05-04 11:48:18 +02:00 committed by GitHub
parent a8abef07cc
commit b8e00d6cd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,14 +99,13 @@ define(function(require) {
hosts.map(function(host){
if(
host &&
host.MONITORING &&
host.MONITORING.HOST_SHARE &&
host.HOST_SHARE &&
host.NAME &&
host.MONITORING.HOST_SHARE.NUMA_NODES &&
host.MONITORING.HOST_SHARE.NUMA_NODES.NODE
host.HOST_SHARE.NUMA_NODES &&
host.HOST_SHARE.NUMA_NODES.NODE
){
var name = host.NAME;
var numaNodes = host.MONITORING.HOST_SHARE.NUMA_NODES.NODE;
var numaNodes = host.HOST_SHARE.NUMA_NODES.NODE;
if (!(numaNodes instanceof Array)) {
numaNodes = [numaNodes];
}