Add AVATAO_SECRET to envvars

This commit is contained in:
Bálint Bokros 2018-02-08 14:58:37 +01:00
parent 545b972296
commit 55ef87e089

View File

@ -1,4 +1,4 @@
from os import environ from os import environ, getenv
from collections import namedtuple from collections import namedtuple
TFW_PREFIX = 'TFW_' TFW_PREFIX = 'TFW_'
@ -6,3 +6,5 @@ tfwenvvars = {envvar.replace(TFW_PREFIX, '', 1): environ.get(envvar)
for envvar in environ.keys() for envvar in environ.keys()
if envvar.startswith(TFW_PREFIX)} if envvar.startswith(TFW_PREFIX)}
tfwenv = namedtuple('tfwenvtuple', tfwenvvars)(**tfwenvvars) tfwenv = namedtuple('tfwenvtuple', tfwenvvars)(**tfwenvvars)
AVATAO_SECRET = getenv('AVATAO_SECRET', 'secret')