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

(cherry picked from commit 5e98202167)
This commit is contained in:
Jorge Miguel Lobo Escalona authored and Tino Vázquez committed 2023-05-25 18:20:08 +02:00
1 parent dd79db35ec
commit 3cdfd4ae78
1 file changed
+1 -3
@@ -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);