Skip to content

Commit

Permalink
Merge pull request #404 from abelCoronado93/bug-storage
Browse files Browse the repository at this point in the history
Solved bug when updating volatile disk
  • Loading branch information
jmelis committed Jul 18, 2017
2 parents 468a406 + 07ec523 commit 7448957
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7448957

Please sign in to comment.