Skip to content

Commit 3da5955

Browse files
committed
Remove deprecated wait() method from DataVolume class
1 parent 5008eeb commit 3da5955

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

ocp_resources/datavolume.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -259,23 +259,6 @@ def wait_deleted(self, timeout=TIMEOUT_4MINUTES):
259259
super().wait_deleted(timeout=timeout)
260260
return self.pvc.wait_deleted(timeout=timeout)
261261

262-
def wait(self, timeout=TIMEOUT_10MINUTES, failure_timeout=TIMEOUT_2MINUTES, wait_for_exists_only=False, sleep=1):
263-
warn(
264-
message="DataVolume.wait() is deprecated and will be removed in "
265-
"the next version. Use wait_for_dv_success() instead.",
266-
category=DeprecationWarning,
267-
stacklevel=2,
268-
)
269-
if wait_for_exists_only:
270-
return super().wait(timeout=timeout, sleep=sleep)
271-
else:
272-
self._check_none_pending_status(failure_timeout=failure_timeout)
273-
274-
# If DV's status is not Pending, continue with the flow
275-
self.wait_for_status(status=self.Status.SUCCEEDED, timeout=timeout)
276-
self.pvc.wait_for_status(status=PersistentVolumeClaim.Status.BOUND, timeout=timeout)
277-
return None
278-
279262
@property
280263
def pvc(self):
281264
return PersistentVolumeClaim(

0 commit comments

Comments
 (0)