mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: check isRetryableAPIError during polling
check isRetryableAPIError error when the function is polling for the resouce. updates: #1969 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
3c773b24e5
commit
3e9172ab31
@ -114,6 +114,9 @@ func deleteSnapshot(snap *snapapi.VolumeSnapshot, t int) error {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
if isRetryableAPIError(err) {
|
||||
return false, nil
|
||||
}
|
||||
if !apierrs.IsNotFound(err) {
|
||||
return false, fmt.Errorf(
|
||||
"get on deleted snapshot %v failed with error other than \"not found\": %v",
|
||||
|
Reference in New Issue
Block a user