UI: Prevent passing boottype/bootmode when template is deploy-as-is (#6151)

This commit is contained in:
Pearl Dsilva 2022-03-22 20:41:05 +05:30 committed by GitHub
parent 6125886f3d
commit f8aca04733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1696,8 +1696,10 @@ export default {
deployVmData.clusterid = values.clusterid
deployVmData.hostid = values.hostid
deployVmData.keyboard = values.keyboard
deployVmData.boottype = values.boottype
deployVmData.bootmode = values.bootmode
if (!this.template?.deployasis) {
deployVmData.boottype = values.boottype
deployVmData.bootmode = values.bootmode
}
deployVmData.dynamicscalingenabled = values.dynamicscalingenabled
if (values.userdata && values.userdata.length > 0) {
deployVmData.userdata = encodeURIComponent(btoa(this.sanitizeReverse(values.userdata)))