From 106fefcbf6cbc62f3be103e2f05a3862a0f2f1e4 Mon Sep 17 00:00:00 2001 From: Five Grant <5@fivegrant.com> Date: Wed, 11 Oct 2023 11:16:56 -0500 Subject: [PATCH] Patch newline out of version --- service/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/api.py b/service/api.py index 9e727fa..724e4ff 100644 --- a/service/api.py +++ b/service/api.py @@ -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}