From 9f6c9e47be9c3c8fa2dfcbed07d861e7ed34e59d Mon Sep 17 00:00:00 2001 From: enisnazif Date: Mon, 31 Oct 2022 04:34:30 +0000 Subject: [PATCH] Fix python external template keys (#27256) (cherry picked from commit 27a92fecc9be30c9b1268beb60db44d2c7b3628f) --- airflow/operators/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/operators/python.py b/airflow/operators/python.py index 538e805cce799..133779f088b9f 100644 --- a/airflow/operators/python.py +++ b/airflow/operators/python.py @@ -621,7 +621,7 @@ class ExternalPythonOperator(_BasePythonVirtualenvOperator): macros when starting. """ - template_fields: Sequence[str] = tuple({'python_path'} | set(PythonOperator.template_fields)) + template_fields: Sequence[str] = tuple({'python'} | set(PythonOperator.template_fields)) def __init__( self,