Skip to content

Commit

Permalink
Patch newline out of version
Browse files Browse the repository at this point in the history
  • Loading branch information
fivegrant committed Oct 11, 2023
1 parent fc5ad35 commit 106fefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_health():
"""
version_file = "../.version"
if os.path.exists(version_file):
version = open(version_file).read()
version = open(version_file).read().strip("\n")
else:
version = "unknown"
return {"status": "ok", "git_sha": version}
Expand Down

0 comments on commit 106fefc

Please sign in to comment.