Skip to content

Commit f8aca04

Browse files
authored
UI: Prevent passing boottype/bootmode when template is deploy-as-is (#6151)
1 parent 6125886 commit f8aca04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/views/compute/DeployVM.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,8 +1696,10 @@ export default {
16961696
deployVmData.clusterid = values.clusterid
16971697
deployVmData.hostid = values.hostid
16981698
deployVmData.keyboard = values.keyboard
1699-
deployVmData.boottype = values.boottype
1700-
deployVmData.bootmode = values.bootmode
1699+
if (!this.template?.deployasis) {
1700+
deployVmData.boottype = values.boottype
1701+
deployVmData.bootmode = values.bootmode
1702+
}
17011703
deployVmData.dynamicscalingenabled = values.dynamicscalingenabled
17021704
if (values.userdata && values.userdata.length > 0) {
17031705
deployVmData.userdata = encodeURIComponent(btoa(this.sanitizeReverse(values.userdata)))

0 commit comments

Comments
 (0)