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

B #5970: Fix ignore volatile disks on VM instantiate (#2304)

This commit is contained in:
Frederick Borges 2022-10-10 18:15:11 +02:00 committed by GitHub
parent eb5709baf2
commit 72704708ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,8 +254,9 @@ define(function(require) {
});
var disks = DisksResize.retrieve($(".disksContext" + template_id, context));
if (disks.length > 0) {
tmp_json.DISK = diffValues(disks, original_tmpl.TEMPLATE.DISK);
var has_changes = diffValues(disks, original_tmpl.TEMPLATE.DISK).length > 0
if (disks.length > 0 && has_changes) {
tmp_json.DISK = disks;
}
var vmgroup = VMGroupSection.retrieve($(".vmgroupContext"+ template_id, context));