1
0
Fork 0

appv2: fix quotes around port keys

This commit is contained in:
Alexandre Aubin 2023-03-04 18:04:50 +01:00
parent fe068c5195
commit 953073f39b

View file

@ -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