[
https://issues.apache.org/jira/browse/AIRFLOW-2322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16767984#comment-16767984
]
jack commented on AIRFLOW-2322:
-------------------------------
The files field isn't a templated .
You can submit PR to make this field templated like the others.
The templated fields are
{code:java}
template_fields = ('to', 'subject', 'html_content'){code}
> Email Operator Templates not working for fiels
> -------------------------------------------------
>
> Key: AIRFLOW-2322
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2322
> Project: Apache Airflow
> Issue Type: Bug
> Components: operators
> Reporter: Jayaradha
> Priority: Major
>
> success_email = EmailOperator(
> task_id='SendEmail',
> to='[email protected]',
> subject = 'Email subject \{{ ds }}'
> html_content='<p>Text Content. </p> <br> Thanks, <br> Admin',
> files=['/home/ec2-user/data/\\\{{ ds }}' + filename],
> dag=dag
> )
> using \{{ ds }} inside attachment list is not working -
> /home/ec2-user/data/\{{ ds }}
>
> File is the list of files to attach with email. It is not accepting templates
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)