mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-29 18:50:08 +03:00
M #~: add cache and discard in disk when instantiate a VM (#2694)
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
This commit is contained in:
parent
b3aaa9ac9f
commit
a263c25dca
@ -233,6 +233,12 @@ define(function(require){
|
||||
if(disk.DEV_PREFIX){
|
||||
newDisk["DEV_PREFIX"] = disk.DEV_PREFIX
|
||||
}
|
||||
if(disk.CACHE){
|
||||
newDisk["CACHE"] = disk.CACHE
|
||||
}
|
||||
if(disk.DISCARD){
|
||||
newDisk["DISCARD"] = disk.DISCARD
|
||||
}
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user