Skip to content

Commit 8aca560

Browse files
Merge pull request #95 from FSU-ACM/release
File based Docker secrets support
2 parents 944cabf + 8d03855 commit 8aca560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contestsuite/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_secret(key, default=None):
1717
value = os.getenv(key, default)
1818
if value and os.path.isfile(value):
1919
with open(value) as f:
20-
return f.read()
20+
return f.read().strip()
2121
return value
2222

2323

0 commit comments

Comments
 (0)