Skip to content

Commit c7dc58a

Browse files
roytmanopenshift-merge-robot
authored andcommitted
RayCluster status safeguards
Signed-off-by: Alexey Roytman <[email protected]>
1 parent bcfe678 commit c7dc58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/codeflare_sdk/cluster/cluster.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def _get_app_wrappers(
572572

573573

574574
def _map_to_ray_cluster(rc) -> Optional[RayCluster]:
575-
if "state" in rc["status"]:
575+
if "status" in rc and "state" in rc["status"]:
576576
status = RayClusterStatus(rc["status"]["state"].lower())
577577
else:
578578
status = RayClusterStatus.UNKNOWN

0 commit comments

Comments
 (0)