From 78fd3101533562bec787a3e7bda2cb23b79e66ca Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Thu, 19 May 2016 15:40:34 +0200 Subject: [PATCH] Bug #4414: Remove USER_INPUTS from VM attributes in Sunstone --- .../public/app/tabs/vms-tab/panels/info.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/info.js b/src/sunstone/public/app/tabs/vms-tab/panels/info.js index 9d13f7d0af..739704df67 100644 --- a/src/sunstone/public/app/tabs/vms-tab/panels/info.js +++ b/src/sunstone/public/app/tabs/vms-tab/panels/info.js @@ -82,15 +82,16 @@ define(function(require) { var that = this; var strippedTemplate = {}; var unshownValues = {}; - $.each(that.element.USER_TEMPLATE, function(key, value) { - if (!key.match(/^SCHED_*/)) { - strippedTemplate[key] = value; - } else { - unshownValues[key] = value; - } - }) - var templateTableHTML = TemplateTable.html(strippedTemplate, RESOURCE, Locale.tr("Attributes"), unshownValues); + $.each(that.element.USER_TEMPLATE, function(key, value) { + if (key.match(/^SCHED_*/) || key == "USER_INPUTS") { + unshownValues[key] = value; + } else { + strippedTemplate[key] = value; + } + }); + + var templateTableHTML = TemplateTable.html(strippedTemplate, RESOURCE, Locale.tr("Attributes")); var monitoring = $.extend({}, this.element.MONITORING); delete monitoring.CPU;