B #4112: fix hugepages numa (#4113)

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo authored and Tino Vázquez committed 2020-01-22 18:06:33 +01:00
1 parent bb62e1cdbe
commit 4c164d10cb
1 file changed
+8 -8
@@ -171,19 +171,19 @@ define(function(require) {
}
if(
templateJSON["TOPOLOGY"] &&
templateJSON["TOPOLOGY"]["HUGEPAGE_SIZE"] !== undefined &&
templateJSON["TOPOLOGY"]["HUGEPAGE_SIZE"] !== null &&
templateJSON["TOPOLOGY"]["HUGEPAGE_SIZE"].length<=0
templateJSON["TOPOLOGY"] &&
(templateJSON["TOPOLOGY"]["HUGEPAGE_SIZE"] === undefined ||
templateJSON["TOPOLOGY"]["HUGEPAGE_SIZE"] === null ||
templateJSON["TOPOLOGY"]["HUGEPAGE_SIZE"].length<=0)
){
delete templateJSON["TOPOLOGY"]["HUGEPAGE_SIZE"];
}
if(
templateJSON["TOPOLOGY"] &&
templateJSON["TOPOLOGY"]["MEMORY_ACCESS"] !== undefined &&
templateJSON["TOPOLOGY"]["MEMORY_ACCESS"] !== null &&
templateJSON["TOPOLOGY"]["MEMORY_ACCESS"].length<=0
templateJSON["TOPOLOGY"] &&
(templateJSON["TOPOLOGY"]["MEMORY_ACCESS"] === undefined ||
templateJSON["TOPOLOGY"]["MEMORY_ACCESS"] === null ||
templateJSON["TOPOLOGY"]["MEMORY_ACCESS"].length<=0)
){
delete templateJSON["TOPOLOGY"]["MEMORY_ACCESS"];
}