Skip to content
Merged
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
5 changes: 4 additions & 1 deletion ocp_resources/datavolume.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,10 @@ def test_dv():
func=lambda: self.exists,
):
# DV reach to success if the status is succeeded or if the DV does not exist
if sample is None or sample.status.phase == self.Status.SUCCEEDED:
if (
sample is None
or sample.get("status", {}).get("phase") == self.Status.SUCCEEDED
):
break
elif stop_status_func and stop_status_func(
*stop_status_func_args, **stop_status_func_kwargs
Expand Down