mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 19:21:31 +00:00
Add AVATAO_SECRET to envvars
This commit is contained in:
parent
545b972296
commit
55ef87e089
@ -1,4 +1,4 @@
|
||||
from os import environ
|
||||
from os import environ, getenv
|
||||
from collections import namedtuple
|
||||
|
||||
TFW_PREFIX = 'TFW_'
|
||||
@ -6,3 +6,5 @@ tfwenvvars = {envvar.replace(TFW_PREFIX, '', 1): environ.get(envvar)
|
||||
for envvar in environ.keys()
|
||||
if envvar.startswith(TFW_PREFIX)}
|
||||
tfwenv = namedtuple('tfwenvtuple', tfwenvvars)(**tfwenvvars)
|
||||
|
||||
AVATAO_SECRET = getenv('AVATAO_SECRET', 'secret')
|
||||
|
Loading…
Reference in New Issue
Block a user