1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #2706: Template wizard creates invalid templates for empty disks

This commit is contained in:
Daniel Molina 2014-02-05 16:02:46 +01:00
parent 9521b68413
commit 142b65a38d

View File

@ -3972,9 +3972,12 @@ function initialize_create_template_dialog(dialog) {
$('.disk div#disk_type.vm_param ',dialog).each(function(){
var hash = {};
addSectionJSON(hash, this);
vm_json["DISK"].push(hash);
if (!$.isEmptyObject(hash)) {
vm_json["DISK"].push(hash);
};
});
//
// NIC
//