[AIRFLOW-2055] Elaborate on slightly ambiguous documentation
Closes #2999 from AetherUnbound/bugfix/var-doc- reference
This commit is contained in:
Родитель
3f50f6bd5b
Коммит
15b8b7a851
|
@ -1700,7 +1700,7 @@ class TaskInstance(Base, LoggingMixin):
|
|||
class VariableAccessor:
|
||||
"""
|
||||
Wrapper around Variable. This way you can get variables in templates by using
|
||||
{var.variable_name}.
|
||||
{var.value.your_variable_name}.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.var = None
|
||||
|
@ -1713,6 +1713,10 @@ class TaskInstance(Base, LoggingMixin):
|
|||
return str(self.var)
|
||||
|
||||
class VariableJsonAccessor:
|
||||
"""
|
||||
Wrapper around deserialized Variables. This way you can get variables
|
||||
in templates by using {var.json.your_variable_name}.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.var = None
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче