mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Validate object lock when setting replication config. (#10200)
Check if object lock is enabled on destination bucket while setting replication configuration on a object lock enabled bucket.
This commit is contained in:
@@ -362,6 +362,13 @@ func (e BucketReplicationDestinationNotFound) Error() string {
|
||||
return "Destination bucket does not exist: " + e.Bucket
|
||||
}
|
||||
|
||||
// BucketReplicationDestinationMissingLock bucket does not have object lock enabled.
|
||||
type BucketReplicationDestinationMissingLock GenericError
|
||||
|
||||
func (e BucketReplicationDestinationMissingLock) Error() string {
|
||||
return "Destination bucket does not have object lock enabled: " + e.Bucket
|
||||
}
|
||||
|
||||
// BucketRemoteTargetNotFound remote target does not exist.
|
||||
type BucketRemoteTargetNotFound GenericError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user