From 17fe5108ab7d2e9a91ae0dafc16d0cbb0ddc9127 Mon Sep 17 00:00:00 2001 From: Jorge Lobo <47326048+jloboescalona2@users.noreply.github.com> Date: Wed, 22 Jan 2020 18:06:33 +0100 Subject: [PATCH] B #4112: fix hugepages numa (#4113) Signed-off-by: Jorge Lobo (cherry picked from commit 4c164d10cb7fa08aeb3c6960cafd41a5ea4e84dd) --- .../templates-tab/form-panels/create-common.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create-common.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create-common.js index 6406b557df..e389c0957e 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create-common.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create-common.js @@ -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"]; }