Skip to content

Commit

Permalink
Fix wrong template_fields_renderers for AWS operators (#16820)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: d3f300fba8c252cac79a1654fddb91532f44c656
  • Loading branch information
Pavel Hlushchanka authored and Cloud Composer Team committed Mar 10, 2022
1 parent 8b0004d commit d7b4b57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/providers/amazon/aws/operators/ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/amazon/aws/operators/sagemaker_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit d7b4b57

Please sign in to comment.