Skip to content

Commit

Permalink
Fixed incorrect rendering of production compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed Nov 26, 2024
1 parent 2fdd543 commit cf97668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployments/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cf97668

Please sign in to comment.