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

B #4112: fix hugepages numa (#4113)

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
(cherry picked from commit 4c164d10cb7fa08aeb3c6960cafd41a5ea4e84dd)
This commit is contained in:
Jorge Lobo 2020-01-22 18:06:33 +01:00 committed by Tino Vazquez
parent 905a6a77cd
commit 17fe5108ab
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -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"];
}