Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Jul 24, 2024
1 parent fd66d03 commit 0d45a11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sky/provision/kubernetes/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,12 @@ def _check_init_containers(pod):
raise config_lib.KubernetesError(
'Failed to run init container for pod '
f'{pod.metadata.name}. Error details: {msg}.')
return
continue
init_waiting = init_status.state.waiting
if (init_waiting is not None and init_waiting.reason
not in ['ContainerCreating', 'PodInitializing']):
# TODO(romilb): There may be more states to check for. Add
# them as needed.
msg = init_waiting.message if (
init_waiting.message) else str(init_waiting)
raise config_lib.KubernetesError(
Expand Down

0 comments on commit 0d45a11

Please sign in to comment.