]> git.proxmox.com Git - pve-manager.git/commit
ui: guest import: actually copy vmconfig state before applying values
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2024 16:09:21 +0000 (17:09 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2024 16:15:42 +0000 (17:15 +0100)
commit8f02fa4307b4314773df843a4b34c61dc65e09e7
tree8368ae78ed52a268c0fcb1807b7957700390da54
parentd29041d9f87575d0c78923805e674dde98a34299
ui: guest import: actually copy vmconfig state before applying values

Otherwise changes will persist, e.g., disabling a CDROM drive won't
work if the values got assembled for the "Resulting Config" tab
before. Same for the "Prepare for VirtIO" checkbox, there one got the
disk twice, once as (old) mapped SATA and once as (original) SCSI.

To fix this do not work on a reference of the original VM config, but
rather always copy that to a new object before applying the form
values.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/GuestImport.js