From 9f6b8a189169b84704c053e77608e9e195ca68d4 Mon Sep 17 00:00:00 2001 From: vichansson Date: Tue, 7 Nov 2023 13:34:44 +0200 Subject: [PATCH] B OpenNebula/one#6375: Remove duplicate CPU field (#2804) --- .../ExtraConfiguration/booting/bootSchema.js | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting/bootSchema.js b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting/bootSchema.js index 79ad62d916..020dde3a60 100644 --- a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting/bootSchema.js +++ b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/booting/bootSchema.js @@ -16,7 +16,7 @@ import { string, boolean } from 'yup' import { useGetHostsQuery } from 'client/features/OneApi/host' -import { getKvmMachines, getKvmCpuModels } from 'client/models/Host' +import { getKvmMachines } from 'client/models/Host' import { Field, arrayToOptions } from 'client/utils' import { T, @@ -75,23 +75,23 @@ export const MACHINE_TYPES = { .default(() => undefined), } -/** @type {Field} CPU Model field */ -export const CPU_MODEL = { - name: 'OS.MODEL', - label: T.CpuModel, - notOnHypervisors: [vcenter, firecracker, lxc], - type: INPUT_TYPES.SELECT, - values: () => { - const { data: hosts = [] } = useGetHostsQuery() - const kvmCpuModels = getKvmCpuModels(hosts) +// /** @type {Field} CPU Model field */ +// export const CPU_MODEL = { +// name: 'OS.MODEL', +// label: T.CpuModel, +// notOnHypervisors: [vcenter, firecracker, lxc], +// type: INPUT_TYPES.SELECT, +// values: () => { +// const { data: hosts = [] } = useGetHostsQuery() +// const kvmCpuModels = getKvmCpuModels(hosts) - return arrayToOptions(kvmCpuModels) - }, - validation: string() - .trim() - .notRequired() - .default(() => undefined), -} +// return arrayToOptions(kvmCpuModels) +// }, +// validation: string() +// .trim() +// .notRequired() +// .default(() => undefined), +// } /** @type {Field} Root device field */ export const ROOT_DEVICE = { @@ -198,7 +198,6 @@ export const BOOT_FIELDS = [ ARCH, SD_DISK_BUS, MACHINE_TYPES, - CPU_MODEL, ROOT_DEVICE, KERNEL_CMD, BOOTLOADER,