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:
parent
9521b68413
commit
142b65a38d
@ -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
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user