This is an automated email from the ASF dual-hosted git repository.

feluelle pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new 6d573e8  Add s3 key to template fields for s3/redshift transfer 
operators (#10890)
6d573e8 is described below

commit 6d573e8abbf87e3c7281347e03d428a6e5baccd4
Author: Wyatt Shapiro <[email protected]>
AuthorDate: Sat Oct 3 06:23:26 2020 -0400

    Add s3 key to template fields for s3/redshift transfer operators (#10890)
---
 airflow/providers/amazon/aws/transfers/redshift_to_s3.py | 2 +-
 airflow/providers/amazon/aws/transfers/s3_to_redshift.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow/providers/amazon/aws/transfers/redshift_to_s3.py 
b/airflow/providers/amazon/aws/transfers/redshift_to_s3.py
index 3a3e6c2..fe51401 100644
--- a/airflow/providers/amazon/aws/transfers/redshift_to_s3.py
+++ b/airflow/providers/amazon/aws/transfers/redshift_to_s3.py
@@ -65,7 +65,7 @@ class RedshiftToS3Operator(BaseOperator):
     :type table_as_file_name: bool
     """
 
-    template_fields = ()
+    template_fields = ('s3_key',)
     template_ext = ()
     ui_color = '#ededed'
 
diff --git a/airflow/providers/amazon/aws/transfers/s3_to_redshift.py 
b/airflow/providers/amazon/aws/transfers/s3_to_redshift.py
index 3b2afd7..5852c46 100644
--- a/airflow/providers/amazon/aws/transfers/s3_to_redshift.py
+++ b/airflow/providers/amazon/aws/transfers/s3_to_redshift.py
@@ -58,7 +58,7 @@ class S3ToRedshiftOperator(BaseOperator):
     :type copy_options: list
     """
 
-    template_fields = ()
+    template_fields = ('s3_key',)
     template_ext = ()
     ui_color = '#ededed'
 

Reply via email to