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

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo authored and GitHub committed 2020-05-04 11:48:18 +02:00
1 parent a8abef07cc
commit b8e00d6cd9
1 file changed
+4 -5
@@ -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];
}