Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def get_status_from_container_state(notebook):

# If the Notebook is initializing, the status will be waiting
waiting_state = container_state["waiting"]
if ["reason"] == 'PodInitializing':
if waiting_state["reason"] == 'PodInitializing':
status_phase = status.STATUS_PHASE.WAITING
status_message = waiting_state.get("reason", "Undetermined reason.")
status_message = waiting_state["reason"]
return status_phase, status_message

# In any other case, the status will be warning with a "reason:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ def test_no_message_container_state(self):

self.assertEqual(
status.get_status_from_container_state(container_state),
("warning",
"PodInitializing: No available message for container state.")
("waiting",
"PodInitializing")
)