From cf97668fbaa703bcb02b8579f11303a6b390b1ee Mon Sep 17 00:00:00 2001 From: Ricardo Garcia Silva Date: Tue, 26 Nov 2024 19:32:52 +0000 Subject: [PATCH] Fixed incorrect rendering of production compose file --- deployments/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployments/deploy.py b/deployments/deploy.py index b8fed1f1..2af39c43 100644 --- a/deployments/deploy.py +++ b/deployments/deploy.py @@ -338,7 +338,7 @@ def handle(self) -> None: rendered = compose_template.substitute(dataclasses.asdict(self.config)) target_path = Path(self.config.deployment_root / "compose.production.yaml") with target_path.open("w") as fh: - for line in rendered.splitlines(): + for line in rendered.splitlines(keepends=True): if not line.startswith("#"): fh.write(line) compose_teplate_path.unlink(missing_ok=True)