diff --git a/ocp_resources/datavolume.py b/ocp_resources/datavolume.py index 8773141eae..9838979abe 100644 --- a/ocp_resources/datavolume.py +++ b/ocp_resources/datavolume.py @@ -249,6 +249,12 @@ def wait_deleted(self, timeout=TIMEOUT_4MINUTES): return self.pvc.wait_deleted(timeout=timeout) def wait(self, timeout=TIMEOUT_10MINUTES, failure_timeout=TIMEOUT_2MINUTES, wait_for_exists_only=False, sleep=1): + warn( + message="DataVolume.wait() is deprecated and will be removed in " + "the next version. Use wait_for_dv_success() instead.", + category=DeprecationWarning, + stacklevel=2, + ) if wait_for_exists_only: return super().wait(timeout=timeout, sleep=sleep) else: