ui: fix incorrect hypervisor in deploy VM wizard (#6952)

Fixes #6756

Pass hypervisor parameter for deployVirtualMachine API only when ISO is selected and not for a template.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2022-12-07 20:10:50 +08:00 committed by GitHub
parent 9fd2d82af9
commit a4d3780143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1713,6 +1713,7 @@ export default {
// step 2: select template/iso
if (this.tabKey === 'templateid') {
deployVmData.templateid = values.templateid
values.hypervisor = null
} else {
deployVmData.templateid = values.isoid
}