Python 3 / Upstream Kubernetes

This commit is contained in:
Shane McDonald
2019-01-14 17:33:01 -05:00
committed by Ryan Petrello
parent 2016798e0f
commit 04da4503db
6 changed files with 16 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ import os
def get_secret():
if os.path.exists("/etc/tower/SECRET_KEY"):
return file('/etc/tower/SECRET_KEY', 'rb').read().strip()
return open('/etc/tower/SECRET_KEY', 'rb').read().strip()
return os.getenv("SECRET_KEY", "privateawx")