mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
Change the timeout handling code due to third-party package change
The wait error changed from `timed out waiting for the condition` to `context deadline exceeded`. Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com>
This commit is contained in:
@@ -753,7 +753,7 @@ func WaitUntilVSCHandleIsReady(
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
if err == wait.ErrorInterrupted(errors.New("timed out waiting for the condition")) {
|
||||
if wait.Interrupted(err) {
|
||||
if vsc != nil &&
|
||||
vsc.Status != nil &&
|
||||
vsc.Status.Error != nil {
|
||||
|
||||
Reference in New Issue
Block a user