Skip to content

Commit

Permalink
[AIRFLOW-283] Make store_to_xcom_key a templated field in GoogleCloud…
Browse files Browse the repository at this point in the history
…StorageDownloadOperator

Closes apache#1628 from illop/gcs_download_operator
  • Loading branch information
Ilya Rakoshes authored and criccomini committed Jun 27, 2016
1 parent 5db7ec7 commit d15f8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/contrib/operators/gcs_download_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -53,7 +53,7 @@ def __init__(
: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.
Expand Down

0 comments on commit d15f8ca

Please sign in to comment.