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

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


The following commit(s) were added to refs/heads/main by this push:
     new d3f300f  Fix wrong template_fields_renderers for AWS operators (#16820)
d3f300f is described below

commit d3f300fba8c252cac79a1654fddb91532f44c656
Author: Pavel Hlushchanka <codenames...@users.noreply.github.com>
AuthorDate: Sun Jul 11 17:22:52 2021 +0200

    Fix wrong template_fields_renderers for AWS operators (#16820)
---
 airflow/providers/amazon/aws/operators/ecs.py            | 2 +-
 airflow/providers/amazon/aws/operators/sagemaker_base.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow/providers/amazon/aws/operators/ecs.py 
b/airflow/providers/amazon/aws/operators/ecs.py
index 20d3228..4cf3d4e 100644
--- a/airflow/providers/amazon/aws/operators/ecs.py
+++ b/airflow/providers/amazon/aws/operators/ecs.py
@@ -144,7 +144,7 @@ class ECSOperator(BaseOperator):
 
     ui_color = '#f0ede4'
     template_fields = ('overrides',)
-    template_fields_renderers = {"overrides": "py"}
+    template_fields_renderers = {"overrides": "json"}
 
     def __init__(
         self,
diff --git a/airflow/providers/amazon/aws/operators/sagemaker_base.py 
b/airflow/providers/amazon/aws/operators/sagemaker_base.py
index 4614f07..d9bb3cd 100644
--- a/airflow/providers/amazon/aws/operators/sagemaker_base.py
+++ b/airflow/providers/amazon/aws/operators/sagemaker_base.py
@@ -40,7 +40,7 @@ class SageMakerBaseOperator(BaseOperator):
 
     template_fields = ['config']
     template_ext = ()
-    template_fields_renderers = {"config": "py"}
+    template_fields_renderers = {"config": "json"}
     ui_color = '#ededed'
 
     integer_fields = []  # type: Iterable[Iterable[str]]

Reply via email to