mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-29 18:50:08 +03:00
B OpenNebula/one#6129: Add disk on template (#2673)
with basic image attributes
This commit is contained in:
parent
1c356eef52
commit
9732628b01
@ -15,7 +15,7 @@ features:
|
||||
# An integer value would be used as a multiplier as follows:
|
||||
# CPU = cpu_factor * VCPU
|
||||
# Set it to 1 to tie CPU and vCPU.
|
||||
cpu_factor: false
|
||||
cpu_factor: 1
|
||||
|
||||
# Actions - Which buttons are visible to operate over the resources
|
||||
|
||||
|
@ -34,7 +34,11 @@ const Content = ({ data, setFormData }) => {
|
||||
const handleSelectedRows = (rows) => {
|
||||
const { original = {} } = rows?.[0] ?? {}
|
||||
|
||||
original.ID !== undefined ? handleSelect(original) : handleClear()
|
||||
// #6129 #6154. To create an image we only need IMAGE and IMAGE_UNAME attributes. Also, we add datastore and type to show on disk card
|
||||
const { NAME, UNAME, DATASTORE, DATASTORE_ID, TYPE } = original
|
||||
const selectedImage = { NAME, UNAME, DATASTORE, DATASTORE_ID, TYPE }
|
||||
|
||||
original.ID !== undefined ? handleSelect(selectedImage) : handleClear()
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user