Fix templates registration and revert boot type
diff --git a/src/views/compute/DeployVM.vue b/src/views/compute/DeployVM.vue
index f1fa215..6ad55aa 100644
--- a/src/views/compute/DeployVM.vue
+++ b/src/views/compute/DeployVM.vue
@@ -473,7 +473,7 @@
</span>
<div style="margin-top: 15px" v-show="this.showDetails">
<div
- v-if="vm.templateid && ['KVM'].includes(hypervisor)">
+ v-if="vm.templateid && ['KVM', 'VMware'].includes(hypervisor)">
<a-form-item :label="$t('label.boottype')">
<a-select
v-decorator="['boottype']"
diff --git a/src/views/image/RegisterOrUploadTemplate.vue b/src/views/image/RegisterOrUploadTemplate.vue
index 209af39..88d39f6 100644
--- a/src/views/image/RegisterOrUploadTemplate.vue
+++ b/src/views/image/RegisterOrUploadTemplate.vue
@@ -774,9 +774,6 @@
return
}
let params = {}
- if (this.hyperVMWShow) {
- params.ostypeid = this.defaultOsId
- }
for (const key in values) {
const input = values[key]