GitHub user noderat added a comment to the discussion: microsoft-psrp securestring jinja2.exceptions.TemplateAssertionError
I can't find a situation where the `get_template_env method()` is ever called in my rudimentary testing because `render_template_fields()` has a `if not jinja_env: jinja_env = self.get_template_env()` conditional seen at https://github.com/apache/airflow/blob/47cdb84b351bd75c8232406d5673405dcb7efd64/airflow/models/baseoperator.py#L759-L760 and at least in my testing jinja_env is always passed in and therefore truthy. The only other case of an operator adding extra jinja filters I could find was the sql to slack webhook and it instead extends `render_template_fields()` as seen in https://github.com/apache/airflow/blob/47cdb84b351bd75c8232406d5673405dcb7efd64/providers/src/airflow/providers/slack/transfers/sql_to_slack_webhook.py#L137-L152 Can this be converted back into an issue, please? GitHub link: https://github.com/apache/airflow/discussions/44095#discussioncomment-11327076 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
