Closed gabriel-msilva closed 2 years ago
From what I understood from the documentation, non-existing environment variables are not working as expected when strict=False.
strict=False
env.yaml file:
env.yaml
empty_env: $NOT_EXIST_ENV_VARIABLE
from envyaml import EnvYAML env = EnvYAML('env.yaml', strict=False) print(env['empty_env']) # >> $NOT_EXIST_ENV_VARIABLE
I was expecting it to return None.
None
python=3.7.10 envyaml=1.8.210417
hi, in this case, it's better to return the original value $NOT_EXIST_ENV_VARIABLE. at least it will show what need to set.
$NOT_EXIST_ENV_VARIABLE
From what I understood from the documentation, non-existing environment variables are not working as expected when
strict=False
.env.yaml
file:I was expecting it to return
None
.