mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Python 3 / Upstream Kubernetes
This commit is contained in:
committed by
Ryan Petrello
parent
2016798e0f
commit
04da4503db
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user