From ea9785592390b40dce48c70dd9daa6f2bae62e22 Mon Sep 17 00:00:00 2001 From: Hongzhi Chen Date: Fri, 17 Feb 2023 02:40:07 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix][SDK]=20pod=20has=20no=20metadata=20att?= =?UTF-8?q?r=20anymore=20in=20the=20get=5Fjob=5Flogs()=20=E2=80=A6=20(#176?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/python/kubeflow/training/api/training_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/kubeflow/training/api/training_client.py b/sdk/python/kubeflow/training/api/training_client.py index c51c0ef5ad..1b78f28749 100644 --- a/sdk/python/kubeflow/training/api/training_client.py +++ b/sdk/python/kubeflow/training/api/training_client.py @@ -577,7 +577,7 @@ def get_job_logs( logging.info("The logs of pod %s:\n %s", pod, pod_logs) except Exception: raise RuntimeError( - f"Failed to read logs for pod {namespace}/{pod.metadata.name}" + f"Failed to read logs for pod {namespace}/{pod}" ) # ------------------------------------------------------------------------ #