fix: unquote urls in docker-compose.yaml (#12072)

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
Cemre Mengu
2024-12-25 11:31:01 +03:00
committed by GitHub
parent 83ea931e3c
commit 1885d3df99
2 changed files with 29 additions and 29 deletions

View File

@@ -43,7 +43,7 @@ def generate_shared_env_block(env_vars, anchor_name="shared-api-worker-env"):
else:
# If default value contains special characters, wrap it in quotes
if re.search(r"[:\s]", default):
default = f'"{default}"'
default = f"{default}"
lines.append(f" {key}: ${{{key}:-{default}}}")
return "\n".join(lines)