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

B #6215: Sunstone overrides DISK SIZE attribute on instantiation (#2623)

(cherry picked from commit 5e98202167b2b13ef95560191f0341698f65fd75)
This commit is contained in:
Jorge Miguel Lobo Escalona 2023-05-25 18:19:02 +02:00 committed by Tino Vázquez
parent dd79db35ec
commit 3cdfd4ae78
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -230,9 +230,7 @@ define(function(require){
IMAGE_ID: disk.IMAGE_ID,
OPENNEBULA_MANAGED: disk.OPENNEBULA_MANAGED
}
if (disk.SIZE !== fields.SIZE) {
newDisk["SIZE"] = fields.SIZE
}
newDisk["SIZE"] = fields.SIZE // Always send the value of the size, as the default form has the value of the template
disks.push(newDisk)
} else {
var diskAux = $.extend(true, {}, disk);