]> git.proxmox.com Git - pve-manager-legacy.git/commit
ui: ProcessorEdit: allow modifications with inaccessible CPU model
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 4 May 2020 10:58:43 +0000 (12:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Jun 2020 13:51:11 +0000 (15:51 +0200)
commitbcdd6087444344b5c20ee521d796ce03476e4945
treea5305e9cde69c9f9927f7f4805d3ac460a0edabf
parent2acbaad6187f70072796232441b1b463ed19e1c0
ui: ProcessorEdit: allow modifications with inaccessible CPU model

An administrator can set a custom CPU model for a VM where the general user
does not have permission to use this particular model. Prior to this change
the ProcessorEdit component would be broken by this, since the store of the
CPU type selector did not contain the configured CPU model.

Add it in manually if this situation occurs (with 'Unknown' vendor, since
we cannot retrieve it from the API), but warn the user that changing it
would be an irreversible action.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
www/manager6/qemu/ProcessorEdit.js