uranusjr commented on code in PR #37028:
URL: https://github.com/apache/airflow/pull/37028#discussion_r1625748411
##########
airflow/models/abstractoperator.py:
##########
@@ -696,6 +696,9 @@ def get_template_env(self, dag: DAG | None = None) ->
jinja2.Environment:
dag = self.get_dag()
return super().get_template_env(dag=dag)
+ def render_value(self, context: Context, jinja_env: jinja2.Environment,
value):
+ return self.render_template(value, context, jinja_env)
Review Comment:
DO we still need `render_value` at this point…? Maybe we should just tell
people to use `render_template`, which is already public.
##########
airflow/models/abstractoperator.py:
##########
@@ -696,6 +696,9 @@ def get_template_env(self, dag: DAG | None = None) ->
jinja2.Environment:
dag = self.get_dag()
return super().get_template_env(dag=dag)
+ def render_value(self, context: Context, jinja_env: jinja2.Environment,
value):
+ return self.render_template(value, context, jinja_env)
Review Comment:
Do we still need `render_value` at this point…? Maybe we should just tell
people to use `render_template`, which is already public.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]