From 0e787960f5e3e406afb9b378b4be9ba8afab50ae Mon Sep 17 00:00:00 2001 From: Tobias Goerke Date: Mon, 23 Oct 2023 20:05:08 +0200 Subject: [PATCH] fix: local var shadowing import (kubeflow/kubeflow#7375) resolves #7373 --- .../crud-web-apps/jupyter/backend/apps/common/status.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/crud-web-apps/jupyter/backend/apps/common/status.py b/components/crud-web-apps/jupyter/backend/apps/common/status.py index ab675387..c4a2c92a 100644 --- a/components/crud-web-apps/jupyter/backend/apps/common/status.py +++ b/components/crud-web-apps/jupyter/backend/apps/common/status.py @@ -59,9 +59,9 @@ def process_status(notebook): def get_empty_status(notebook): creation_timestamp = notebook.get("metadata", {}).get("creationTimestamp") - status = notebook.get("status", {}) - container_state = status.get("containerState") - conditions = status.get("conditions") + notebook_status = notebook.get("status", {}) + container_state = notebook_status.get("containerState") + conditions = notebook_status.get("conditions") # Convert a date string of a format to datetime object nb_creation_time = dt.datetime.strptime(