From f14619f0df9abfad165c1b938de72934e29012db Mon Sep 17 00:00:00 2001 From: phaer Date: Thu, 26 Oct 2023 10:17:30 +0200 Subject: [PATCH] strip read secrets --- buildbot_nix/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index 10b13a4..697ae4c 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -546,7 +546,7 @@ def read_secret_file(secret_name: str) -> str: if directory is None: print("directory not set", file=sys.stderr) sys.exit(1) - return Path(directory).joinpath(secret_name).read_text() + return Path(directory).joinpath(secret_name).read_text().strip() @dataclass