1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Solved bug when updating volatile disk

This commit is contained in:
abelCoronado93 2017-07-18 14:10:39 +02:00
parent 6929cc3790
commit 07ec523e1e

View File

@ -148,7 +148,11 @@ define(function(require) {
var tmpl = WizardFields.retrieve(selectedContext);
if(!tmpl["IMAGE"] && !tmpl["IMAGE_ID"]){
if(tmpl.SIZE){
tmpl.SIZE = tmpl.SIZE * 1024;
}
if($("input[name='" + this.diskTabId + "']:checked", context).val() == "image" && !tmpl["IMAGE"] && !tmpl["IMAGE_ID"]){
return {};
}
var dev_prefix = WizardFields.retrieveInput($('#disk_dev_prefix', selectedContext));