diff --git a/misc/config_tools/configurator/pyodide/populateDefaultValues.py b/misc/config_tools/configurator/pyodide/populateDefaultValues.py index dcc94eb38..23f22f37a 100644 --- a/misc/config_tools/configurator/pyodide/populateDefaultValues.py +++ b/misc/config_tools/configurator/pyodide/populateDefaultValues.py @@ -37,6 +37,15 @@ def main(scenario): schema_path=scenario_xml_schema_path, ) pipeline.run(obj) + + # Clean up the VM_NAME and/or vm_name which does not exist + etree = obj.get("scenario_etree").getroot() + vmNames = [name.text for name in etree.findall(".//vm/name")] + for name in etree.findall(".//IVSHMEM_VM/VM_NAME") + \ + etree.findall(".//vuart_connection/endpoint/vm_name"): + if name.text not in vmNames: + name.text = "" + result = tostring(obj.get("scenario_etree").getroot()) result = result.decode() result = convert_result({