You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/08/27 16:30:46 UTC

[GitHub] [airflow] philippefutureboy commented on issue #17872: Loading Variables from ENV does not work?

philippefutureboy commented on issue #17872:
URL: https://github.com/apache/airflow/issues/17872#issuecomment-907326238


   @mik-laj Thanks for your answer.
   
   Thanks for the info wrt the uppercase condition. I will be modifying the relevant env vars to reflect this.
   I do not understand however how the uppercase condition affects the specific error above:
   
   `jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'REPORT_STORAGE_ROOT'`
   
   In this case, REPORT_STORAGE_ROOT is introduced as env via `AIRFLOW_VAR_REPORT_STORAGE_ROOT`, which is uppercase. Then I access the key using `{{var.REPORT_STORAGE_ROOT}}`. If the issue was related to case, then this should work. Did I miss something?
   
   Do I have to register the EnvironmentVariableBackend?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org