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/06/28 08:41:41 UTC

[GitHub] [airflow] ashb commented on a change in pull request #16686: Add conn to jinja template context

ashb commented on a change in pull request #16686:
URL: https://github.com/apache/airflow/pull/16686#discussion_r659592460



##########
File path: airflow/models/taskinstance.py
##########
@@ -1632,6 +1634,30 @@ def get(
                 """Get Airflow Variable after deserializing JSON value"""
                 return Variable.get(item, default_var=default_var, deserialize_json=True)
 
+        class ConnectionAccessor:
+            """
+            Wrapper around Connection. This way you can get connections in
+            templates by using ``{{ conn.value.variable_name }}`` or

Review comment:
       It's not a variable name but a conn_id




-- 
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