fix: local var shadowing import (kubeflow/kubeflow#7375)

resolves #7373
This commit is contained in:
Tobias Goerke 2023-10-23 20:05:08 +02:00 committed by GitHub
parent 8a4d0efe6e
commit 0e787960f5
1 changed files with 3 additions and 3 deletions

View File

@ -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(