airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Huang (JIRA)" <>
Subject [jira] [Created] (AIRFLOW-1076) Support getting variable by string in templates
Date Wed, 05 Apr 2017 23:43:41 GMT
Daniel Huang created AIRFLOW-1076:

             Summary: Support getting variable by string in templates
                 Key: AIRFLOW-1076
             Project: Apache Airflow
          Issue Type: Improvement
            Reporter: Daniel Huang
            Assignee: Daniel Huang
            Priority: Minor

Currently, one can fetch variables in templates with `{{}}`. But that doesn't
work if the variable key has a character you can't use as an attribute, like ":" or "-". 

Should provide alternative method of `{{ var.value.get('foo:bar') }}`. Can then also supply
a default value if the variable is not found.

This message was sent by Atlassian JIRA

View raw message