mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
bug #2706: Template wizard creates invalid templates for empty disks
This commit is contained in:
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
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user