This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-7-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit dd6e614e947d27024a6e65e7a425d45be73465a8 Author: Hussein Awala <[email protected]> AuthorDate: Sat Sep 16 20:24:20 2023 +0200 Clarify var.value.get and var.json.get usage (#34411) (cherry picked from commit 03db0f6b785a4983c09d6eec7433cf28f7759610) --- docs/apache-airflow/templates-ref.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/apache-airflow/templates-ref.rst b/docs/apache-airflow/templates-ref.rst index 3cb2f4a93e..763d3550fd 100644 --- a/docs/apache-airflow/templates-ref.rst +++ b/docs/apache-airflow/templates-ref.rst @@ -120,7 +120,7 @@ You can access them as either plain-text or JSON. If you use JSON, you are also able to walk nested structures, such as dictionaries like: ``{{ var.json.my_dict_var.key1 }}``. -It is also possible to fetch a variable by string if needed with +It is also possible to fetch a variable by string if needed (for example your variable key contains dots) with ``{{ var.value.get('my.var', 'fallback') }}`` or ``{{ var.json.get('my.dict.var', {'key1': 'val1'}) }}``. Defaults can be supplied in case the variable does not exist.
