1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

Bug #4414: Remove USER_INPUTS from VM attributes in Sunstone

This commit is contained in:
Jaime Melis 2016-05-19 15:40:34 +02:00
parent 8f91353278
commit 78fd310153

View File

@ -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;