You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/08/24 15:46:10 UTC

[airflow] branch v1-10-stable updated: adding body as templated field for CloudSqlImportOperator (#10510)

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

potiuk pushed a commit to branch v1-10-stable
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v1-10-stable by this push:
     new 18e3a3b  adding body as templated field for CloudSqlImportOperator (#10510)
18e3a3b is described below

commit 18e3a3b96249000820764c21aaecae03315bfc8f
Author: MohammedDiab <mo...@gmail.com>
AuthorDate: Mon Aug 24 17:40:22 2020 +0200

    adding body as templated field for CloudSqlImportOperator (#10510)
---
 airflow/contrib/operators/gcp_sql_operator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/contrib/operators/gcp_sql_operator.py b/airflow/contrib/operators/gcp_sql_operator.py
index 4e0c279..9a9384e 100644
--- a/airflow/contrib/operators/gcp_sql_operator.py
+++ b/airflow/contrib/operators/gcp_sql_operator.py
@@ -683,7 +683,7 @@ class CloudSqlInstanceImportOperator(CloudSqlBaseOperator):
     :type validate_body: bool
     """
     # [START gcp_sql_import_template_fields]
-    template_fields = ('project_id', 'instance', 'gcp_conn_id', 'api_version')
+    template_fields = ('project_id', 'instance', 'gcp_conn_id', 'api_version', 'body')
     # [END gcp_sql_import_template_fields]
 
     @apply_defaults