fix: local var shadowing import (kubeflow/kubeflow#7375)
resolves #7373
This commit is contained in:
parent
8a4d0efe6e
commit
0e787960f5
|
|
@ -59,9 +59,9 @@ def process_status(notebook):
|
||||||
|
|
||||||
def get_empty_status(notebook):
|
def get_empty_status(notebook):
|
||||||
creation_timestamp = notebook.get("metadata", {}).get("creationTimestamp")
|
creation_timestamp = notebook.get("metadata", {}).get("creationTimestamp")
|
||||||
status = notebook.get("status", {})
|
notebook_status = notebook.get("status", {})
|
||||||
container_state = status.get("containerState")
|
container_state = notebook_status.get("containerState")
|
||||||
conditions = status.get("conditions")
|
conditions = notebook_status.get("conditions")
|
||||||
|
|
||||||
# Convert a date string of a format to datetime object
|
# Convert a date string of a format to datetime object
|
||||||
nb_creation_time = dt.datetime.strptime(
|
nb_creation_time = dt.datetime.strptime(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue