From 5a268171aa28ab832a24645323e7b5c563357634 Mon Sep 17 00:00:00 2001 From: juanmont Date: Tue, 25 Apr 2017 12:50:38 +0200 Subject: [PATCH] B #5129 Added disks without size, when saving the template (#277) --- .../form-panels/create/wizard-tabs/storage/disk-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab.js index 45a0f0f164..787ed3518e 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab.js @@ -149,7 +149,7 @@ define(function(require) { if(tmpl["SIZE"]){ tmpl["SIZE"] = tmpl["SIZE"] * 1024; } - else{ + else if(!tmpl["IMAGE"] && !tmpl["IMAGE_ID"]){ return {}; } var dev_prefix = WizardFields.retrieveInput($('#disk_dev_prefix', selectedContext));