1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-04 17:47:00 +03:00

Solved bug when updating volatile disk

This commit is contained in:
abelCoronado93 2017-07-18 14:10:39 +02:00 committed by Ruben S. Montero
parent a9fdee4810
commit 57e65f50db

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