config-tools: tiny fix in upgrader

Do not copy the 'board' and 'scenario' in <acrn-config> to the new xml.

Tracked-On: #7345
Signed-off-by: Conghui <conghui.chen@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Conghui 2022-04-23 05:32:51 +08:00 committed by acrnsi-robot
parent 593414e9c2
commit c0fd2e9ce0
1 changed files with 0 additions and 2 deletions

View File

@ -731,8 +731,6 @@ class ScenarioUpgrader(ScenarioTransformer):
def upgraded_etree(self):
new_xml_etree = etree.ElementTree(etree.Element(self.old_xml_etree.getroot().tag))
root_node = new_xml_etree.getroot()
for k, v in self.old_xml_etree.getroot().items():
new_xml_etree.getroot().set(k, v)
# Migrate the HV and VM nodes, which are needed to kick off a thorough traversal of the existing scenario.
for old_node in self.old_xml_etree.getroot():