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 2016/06/27 18:40:27 UTC

incubator-airflow git commit: [AIRFLOW-283] Make store_to_xcom_key a templated field in GoogleCloudStorageDownloadOperator

Repository: incubator-airflow
Updated Branches:
  refs/heads/master 5db7ec70f -> d15f8ca37


[AIRFLOW-283] Make store_to_xcom_key a templated field in GoogleCloudStorageDownloadOperator

Closes #1628 from illop/gcs_download_operator


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

Branch: refs/heads/master
Commit: d15f8ca370b746087eb4f9241acbe543d35ae191
Parents: 5db7ec7
Author: Ilya Rakoshes <il...@wepay.com>
Authored: Mon Jun 27 11:40:20 2016 -0700
Committer: Chris Riccomini <ch...@wepay.com>
Committed: Mon Jun 27 11:40:20 2016 -0700

----------------------------------------------------------------------
 airflow/contrib/operators/gcs_download_operator.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/d15f8ca3/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 511248e..aa2adf2 100644
--- a/airflow/contrib/operators/gcs_download_operator.py
+++ b/airflow/contrib/operators/gcs_download_operator.py
@@ -23,7 +23,7 @@ class GoogleCloudStorageDownloadOperator(BaseOperator):
     """
     Downloads a file from Google Cloud Storage.
     """
-    template_fields = ('bucket','object','filename',)
+    template_fields = ('bucket','object','filename','store_to_xcom_key',)
     template_ext = ('.sql',)
     ui_color = '#f0eee4'
 
@@ -53,7 +53,7 @@ class GoogleCloudStorageDownloadOperator(BaseOperator):
         :type filename: string
         :param store_to_xcom_key: If this param is set, the operator will push
             the contents of the downloaded file to XCom with the key set in this
-            paramater. If false, the downloaded data will not be pushed to XCom.
+            parameter. If false, the downloaded data will not be pushed to XCom.
         :type store_to_xcom_key: string
         :param google_cloud_storage_conn_id: The connection ID to use when
             connecting to Google cloud storage.