You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by cr...@apache.org on 2017/02/14 22:58:42 UTC

incubator-airflow git commit: [AIRFLOW-877] Remove .sql template extension from GCS download operator

Repository: incubator-airflow
Updated Branches:
  refs/heads/master a097627d8 -> debc69e27


[AIRFLOW-877] Remove .sql template extension from GCS download operator

Prior to this patch, if you use a templated file with a .sql extension,
and it's templated, you'd receive an exception because Airflow would try
and load the file (that hasn't yet been downloaded) to template it. This
patch fixes that.

Closes #2083 from
sarfarazsoomro/sas/fix_gcs_download_op


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/debc69e2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/debc69e2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/debc69e2

Branch: refs/heads/master
Commit: debc69e2787542cd56ab28b6c48db01c65ad05c4
Parents: a097627
Author: Sarfaraz Soomro <sa...@wepay.com>
Authored: Tue Feb 14 14:56:52 2017 -0800
Committer: Chris Riccomini <ch...@wepay.com>
Committed: Tue Feb 14 14:57:06 2017 -0800

----------------------------------------------------------------------
 airflow/contrib/operators/gcs_download_operator.py | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/debc69e2/airflow/contrib/operators/gcs_download_operator.py
----------------------------------------------------------------------
diff --git a/airflow/contrib/operators/gcs_download_operator.py b/airflow/contrib/operators/gcs_download_operator.py
index d1ad3c3..f24ad85 100644
--- a/airflow/contrib/operators/gcs_download_operator.py
+++ b/airflow/contrib/operators/gcs_download_operator.py
@@ -25,7 +25,6 @@ class GoogleCloudStorageDownloadOperator(BaseOperator):
     Downloads a file from Google Cloud Storage.
     """
     template_fields = ('bucket','object','filename','store_to_xcom_key',)
-    template_ext = ('.sql',)
     ui_color = '#f0eee4'
 
     @apply_defaults