From 9197193e124939184865fa263b325cf1c421f0c8 Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Fri, 18 Mar 2022 19:29:58 +0800 Subject: [PATCH] config_tools/upgrader: convert the old SERVICE_VM type In the old days SERVICE_VM was also an acceptible VM type. It is now converted to the load_order, with the vm_type field replaced by STANDARD_VM. This patch adds this conversion logic into the upgrader. Tracked-On: #6690 Signed-off-by: Junjie Mao --- misc/config_tools/scenario_config/upgrader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/scenario_config/upgrader.py b/misc/config_tools/scenario_config/upgrader.py index ce98197fd..3292ae364 100755 --- a/misc/config_tools/scenario_config/upgrader.py +++ b/misc/config_tools/scenario_config/upgrader.py @@ -402,7 +402,7 @@ class ScenarioUpgrader(ScenarioTransformer): old_guest_flag_nodes or \ (old_rtos_type_nodes and old_rtos_type_nodes[0].text in ["Soft RT", "Hard RT"]): new_node.text = "RTVM" - elif old_vm_type_node.text in ["SAFETY_VM", "PRE_STD_VM", "POST_STD_VM"]: + elif old_vm_type_node.text in ["SAFETY_VM", "PRE_STD_VM", "POST_STD_VM", "SERVICE_VM"]: new_node.text = "STANDARD_VM" else: new_node.text = old_vm_type_node.text