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

M #-: Clear ramdisk on kernel path clear (#3273)

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 2fe102032e682e4f06a51989e0338349dcaa73b3)
This commit is contained in:
vichansson 2024-10-22 11:07:29 +03:00 committed by Tino Vázquez
parent 4a5c6aa989
commit e008ef40bf
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -108,7 +108,9 @@ export const RAMDISK_DS = {
value: (_, form) => {
if (
(form?.getValues(`extra.${RAMDISK_PATH_ENABLED_NAME}`) ||
!form?.getValues(`extra.${KERNEL_PATH_ENABLED_NAME}`)) &&
!form?.getValues(`extra.${KERNEL_PATH_ENABLED_NAME}`) ||
!form?.getValues(`extra.${KERNEL_NAME}`) ||
!form?.getValues(`extra.${KERNEL_DS_NAME}`)) &&
form?.setValue
) {
form?.setValue(`extra.${RAMDISK_DS_NAME}`, undefined)