This commit is contained in:
parent
13ec8a7b8c
commit
62e19837aa
2
main.py
2
main.py
|
@ -11,7 +11,7 @@ def ReadConf(variable_name, default_value=None):
|
||||||
# Try to get the variable from the environment
|
# Try to get the variable from the environment
|
||||||
env_value = os.environ.get(variable_name)
|
env_value = os.environ.get(variable_name)
|
||||||
|
|
||||||
if env_value is not None:
|
if env_value:
|
||||||
config_data = yaml.load(env_value, Loader=yaml.FullLoader)
|
config_data = yaml.load(env_value, Loader=yaml.FullLoader)
|
||||||
return config_data
|
return config_data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user