| |
@@ -74,10 +74,11 @@
|
| |
os.environ["POSTGRESQL_SERVICE_PORT"],
|
| |
os.environ["POSTGRESQL_DATABASE"]
|
| |
)
|
| |
+ config_object["SECRET_KEY"] = os.environ["SECRET_KEY"]
|
| |
except(KeyError):
|
| |
- print("OpenShift mode enabled but values required for db connection couldn't be fetched. "
|
| |
+ print("OpenShift mode enabled but required values couldn't be fetched. "
|
| |
"Check, if you have these variables defined in you env: "
|
| |
- "(POSTGRESQL_[USER, PASSWORD, DATABASE, SERVICE_HOST, SERVICE_PORT])", file=sys.stderr)
|
| |
+ "(POSTGRESQL_[USER, PASSWORD, DATABASE, SERVICE_HOST, SERVICE_PORT], SECRET_KEY)", file=sys.stderr)
|
| |
sys.exit(1)
|
| |
|
| |
# And then try to get more data from OpenShift env
|
| |