From acf89510cd5a18d15c1a45e674ba0bcae9293097 Mon Sep 17 00:00:00 2001 From: Jonathan Simon Prates Date: Sat, 4 Jun 2022 22:51:51 +0100 Subject: [PATCH] fix: DatabricksSubmitRunOperator and DatabricksRunNowOperator cannot define .json as template_ext (#23622) (#23641) --- airflow/providers/databricks/operators/databricks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/providers/databricks/operators/databricks.py b/airflow/providers/databricks/operators/databricks.py index 8af4474b1315f..028c428ac16bf 100644 --- a/airflow/providers/databricks/operators/databricks.py +++ b/airflow/providers/databricks/operators/databricks.py @@ -305,7 +305,7 @@ class DatabricksSubmitRunOperator(BaseOperator): # Used in airflow.models.BaseOperator template_fields: Sequence[str] = ('json',) - template_ext: Sequence[str] = ('.json',) + template_ext: Sequence[str] = ('.json-tpl',) # Databricks brand color (blue) under white text ui_color = '#1CB1C2' ui_fgcolor = '#fff' @@ -574,7 +574,7 @@ class DatabricksRunNowOperator(BaseOperator): # Used in airflow.models.BaseOperator template_fields: Sequence[str] = ('json',) - template_ext: Sequence[str] = ('.json',) + template_ext: Sequence[str] = ('.json-tpl',) # Databricks brand color (blue) under white text ui_color = '#1CB1C2' ui_fgcolor = '#fff'