From 9c39d22fb108d0440b2047966b75c20656e40a74 Mon Sep 17 00:00:00 2001 From: Pavel Hlushchanka Date: Sun, 11 Jul 2021 17:22:52 +0200 Subject: [PATCH] Fix wrong template_fields_renderers for AWS operators (#16820) GitOrigin-RevId: d3f300fba8c252cac79a1654fddb91532f44c656 --- 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 20d3228f62..4cf3d4ee48 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 4614f073d8..d9bb3cda90 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]]