mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
Simplify remote tier validation in lifecycle rule validation (#12329)
This commit is contained in:
committed by
GitHub
parent
2ca9c533ef
commit
cfa94cc35c
@@ -80,7 +80,7 @@ func (api objectAPIHandlers) PutBucketLifecycleHandler(w http.ResponseWriter, r
|
||||
}
|
||||
|
||||
// Validate the transition storage ARNs
|
||||
if err = validateLifecycleTransition(ctx, bucket, bucketLifecycle); err != nil {
|
||||
if err = validateTransitionTier(ctx, bucketLifecycle); err != nil {
|
||||
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL, guessIsBrowserReq(r))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user