[
https://issues.apache.org/jira/browse/AIRFLOW-1521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16133711#comment-16133711
]
ASF subversion and git services commented on AIRFLOW-1521:
----------------------------------------------------------
Commit f1a7c00510836715a75abecc88a2c75b1e8c9af8 in incubator-airflow's branch
refs/heads/master from [~mnadal]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=f1a7c00 ]
[AIRFLOW-1521] Fix emplate rendering for BigqueryTableDeleteOperator
The list of template_fields contains only 1 entry and was
interpreted by python as a list of character. That was
breaking the render_template function (see AIRFLOW-1521
ticket)
Closes #2534 from
moe-nadal-ck/AIRFLOW-1521/fix_table_delete_operator_template_fields_list
> Template fields definition for bigquery_table_delete_operator doesn't work
> --------------------------------------------------------------------------
>
> Key: AIRFLOW-1521
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1521
> Project: Apache Airflow
> Issue Type: Bug
> Components: contrib
> Affects Versions: Airflow 1.8
> Reporter: Moe Nadal
> Priority: Minor
> Fix For: 1.8.2
>
>
> I obtain the following error when trying to use the
> `bigquery_table_delete_operator` with the recent fix to add the field
> `deletion_dataset_table` in the list of template fields :
> `[2017-08-18 10:58:30,556] {models.py:1426} ERROR -
> 'BigQueryTableDeleteOperator' object has no attribute 'd'
> Traceback (most recent call last):
> File "/usr/lib/python2.7/site-packages/airflow/models.py", line 1368, in run
> self.render_templates()
> File "/usr/lib/python2.7/site-packages/airflow/models.py", line 1587, in
> render_templates
> content = getattr(task, attr)
> AttributeError: 'BigQueryTableDeleteOperator' object has no attribute 'd'`
> This is caused by python behavior which interpret a list with only one string
> as a list of characters :
> `template_fields = ('deletion_dataset_table')`
> I'm preparing a PR to change it to :
> `template_fields = ('deletion_dataset_table',)`
> Link for the PR : https://github.com/apache/incubator-airflow/pull/2534
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)