mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 04:39:34 +00:00
config_tools: fix the issue Service VM type is updated by UI automatically
Currently, if I update Pre-Launched VM type to real-time, select PCPU ID and enable Real-time vCPU, then we update the name of sevice VM, finally, click the save button. we will see the type of service vm is updated to RTVM. It is unexpected. So this patch removes the logic of hiding service VM type, and only allows user selecting Standard VM type to fix the issue that the service vm type is updated by UI automatically. Tracked-On: #6690 Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
This commit is contained in:
@@ -214,16 +214,6 @@ export default {
|
||||
this.currentFormData = this.scenario.vm[i]
|
||||
}
|
||||
}
|
||||
if (this.currentFormData['load_order'] === 'SERVICE_VM') {
|
||||
if (this.currentFormData.hasOwnProperty('vm_type')) {
|
||||
delete this.schemas.ServiceVM.BasicConfigType.properties.vm_type
|
||||
} else {
|
||||
if (this.schemas.ServiceVM.BasicConfigType.properties.hasOwnProperty('vm_type') === false) {
|
||||
this.schemas.ServiceVM.BasicConfigType.properties.vm_type =
|
||||
{$ref: '#/definitions/BasicVMType', title: 'VM type', description: '<p>Select the VM type. A standard VM (<span class=…ial features for time-sensitive applications.</p>'}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
switchTab(tabVMID) {
|
||||
this.activeVMID = tabVMID;
|
||||
|
Reference in New Issue
Block a user