This is an automated email from the ASF dual-hosted git repository.

weilee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e190cff272 fix wrong arguments in read_namespaced_pod_log call (#39874)
e190cff272 is described below

commit e190cff27299256df75b56e46e27e9932174805a
Author: Wei Lee <[email protected]>
AuthorDate: Mon May 27 21:10:58 2024 -0400

    fix wrong arguments in read_namespaced_pod_log call (#39874)
    
    * fix(providers/cncf)
        * remove unexpected argument pod in read_namespaced_pod_log call
        * change wrong argument container_name to container for 
read_namespaced_pod_log
---
 airflow/providers/cncf/kubernetes/operators/pod.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/airflow/providers/cncf/kubernetes/operators/pod.py 
b/airflow/providers/cncf/kubernetes/operators/pod.py
index 0cb08033b4..d530f86bcc 100644
--- a/airflow/providers/cncf/kubernetes/operators/pod.py
+++ b/airflow/providers/cncf/kubernetes/operators/pod.py
@@ -807,8 +807,7 @@ class KubernetesPodOperator(BaseOperator):
             logs = self.client.read_namespaced_pod_log(
                 name=pod.metadata.name,
                 namespace=pod.metadata.namespace,
-                pod=pod,
-                container_name=self.base_container_name,
+                container=self.base_container_name,
                 follow=follow,
                 timestamps=False,
                 since_seconds=since_seconds,

Reply via email to