mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-21 07:24:19 +00:00
fix(provider): return immediately when BatchForget flush fails
Signed-off-by: Jay2006sawant <jay242902@gmail.com>
This commit is contained in:
@@ -384,7 +384,7 @@ func (urp *unifiedRepoProvider) BatchForget(ctx context.Context, snapshotIDs []s
|
||||
|
||||
err = bkRepo.Flush(ctx)
|
||||
if err != nil {
|
||||
errs = append(errs, errors.Wrap(err, "error to flush repo"))
|
||||
return append(errs, errors.Wrap(err, "error to flush repo"))
|
||||
}
|
||||
|
||||
log.Debug("Forget snapshot complete")
|
||||
|
||||
Reference in New Issue
Block a user