mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
validate service type of target in replication/ilm transition config (#10928)
This commit is contained in:
committed by
Harshavardhana
parent
f60b6eb82e
commit
0fa430c1da
@@ -154,6 +154,9 @@ func validateTransitionDestination(ctx context.Context, bucket string, targetLab
|
||||
if err != nil {
|
||||
return false, "", BucketRemoteTargetNotFound{Bucket: bucket}
|
||||
}
|
||||
if arn.Type != madmin.ILMService {
|
||||
return false, "", BucketRemoteArnTypeInvalid{}
|
||||
}
|
||||
clnt := globalBucketTargetSys.GetRemoteTargetClient(ctx, tgt.Arn)
|
||||
if clnt == nil {
|
||||
return false, "", BucketRemoteTargetNotFound{Bucket: bucket}
|
||||
|
||||
Reference in New Issue
Block a user