From 92971fe97dc8390f82874936659af3fdb3e68287 Mon Sep 17 00:00:00 2001 From: Enis Nazif Date: Tue, 25 Oct 2022 12:15:20 +0100 Subject: [PATCH 1/3] Rename python_path -> python in ExternalPythonOperator template --- 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, From a388f9aa8e54bc93393ae4753221363e49d05df3 Mon Sep 17 00:00:00 2001 From: Enis Nazif Date: Tue, 25 Oct 2022 12:20:54 +0100 Subject: [PATCH 2/3] Fix --- 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 133779f088b9f..538e805cce799 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'} | set(PythonOperator.template_fields)) + template_fields: Sequence[str] = tuple({'python_path'} | set(PythonOperator.template_fields)) def __init__( self, From fce4d6050177a86c4b25c0c41cc1e7b658a20996 Mon Sep 17 00:00:00 2001 From: Enis Nazif Date: Tue, 25 Oct 2022 12:23:49 +0100 Subject: [PATCH 3/3] Fix template key --- 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,