1
0
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:
David 2023-07-18 11:28:16 +02:00 committed by GitHub
parent 1c356eef52
commit 9732628b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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 (