From 953073f39b0c7b65944bbb1b881c9ea457349f79 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 4 Mar 2023 18:04:50 +0100 Subject: [PATCH] appv2: fix quotes around port keys --- packaging_v2/convert_app_to_packaging_v2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging_v2/convert_app_to_packaging_v2.py b/packaging_v2/convert_app_to_packaging_v2.py index 850b9b4..77b5a6e 100644 --- a/packaging_v2/convert_app_to_packaging_v2.py +++ b/packaging_v2/convert_app_to_packaging_v2.py @@ -217,6 +217,10 @@ def _dump_v2_manifest_as_toml(manifest): toml_manifest_dump = toml_manifest_dump.replace('"ram.runtime"', "ram.runtime") toml_manifest_dump = toml_manifest_dump.replace('"main.url"', "main.url") toml_manifest_dump = toml_manifest_dump.replace('"main.default"', "main.default") + if "ports" in manifest["resources"]: + for port_thing in manifest["resources"]["ports"].keys(): + toml_manifest_dump = toml_manifest_dump.replace(f'"{port_thing}"', f"{port_thing}") + return toml_manifest_dump