diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage.js index 1909fe638e..09d5d920ba 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage.js @@ -54,7 +54,7 @@ define(function(require) { this.wizardTabId = WIZARD_TAB_ID + UniqueId.id(); this.icon = 'fa-server'; this.title = Locale.tr("Storage"); - this.classes = "hypervisor" + this.classes = "hypervisor"; if(opts.listener != undefined){ this.listener = opts.listener; @@ -145,6 +145,13 @@ define(function(require) { if (!$.isEmptyObject(diskJSON)) { disksJSON.push(diskJSON); }; }); + $('select#TM_MAD_SYSTEM', context).each(function(index, element){ + var value = $(element).val(); + if(value){ + templateJSON["TM_MAD_SYSTEM"] = value; + } + }); + if (disksJSON.length > 0) { templateJSON["DISK"] = disksJSON; localStorage.setItem("disksJSON", JSON.stringify(disksJSON));