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

M #~: add DEV_PREFIX when instantiate a VM Template (#2690)

This commit is contained in:
Jorge Miguel Lobo Escalona 2023-07-26 18:10:12 +02:00 committed by GitHub
parent 73a9b7931a
commit 07cb0f9b53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,6 +231,9 @@ define(function(require){
OPENNEBULA_MANAGED: disk.OPENNEBULA_MANAGED,
RECOVERY_SNAPSHOT_FREQ: disk.RECOVERY_SNAPSHOT_FREQ
}
if(disk.DEV_PREFIX){
newDisk["DEV_PREFIX"] = disk.DEV_PREFIX
}
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 {