From 6ae157678832f3951d7d22bc5bc2fd2af7b5f716 Mon Sep 17 00:00:00 2001 From: Yuanyuan Zhao Date: Wed, 25 May 2022 15:24:11 +0000 Subject: [PATCH] config_tools: hide vm_type for Service VM For Service OS, 'vm_type' should not be modified. Delete it from 'ServiceVMBasicConfigType' to forbid unexpected error. Tracked-On: #7528 Signed-off-by: Yuanyuan Zhao --- .../configurator/packages/configurator/src/pages/Config.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue index 58aa59990..f2847b0a1 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue @@ -205,6 +205,9 @@ export default { this.currentFormData = this.scenario.vm[i] } } + if (this.currentFormData['load_order'] === 'SERVICE_VM') { + delete this.currentFormSchema.BasicConfigType.properties.vm_type + } }, switchTab(tabVMID) { this.activeVMID = tabVMID;