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

This commit is contained in:
Daniel Molina committed 2014-02-05 17:45:21 +01:00
1 parent 9521b68413
commit 142b65a38d
1 file changed
+4 -1
@@ -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
//