mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Validate if replication config being added is self referential (#17142)
This commit is contained in:
@@ -437,6 +437,16 @@ func (e RemoteTargetConnectionErr) Error() string {
|
||||
return fmt.Sprintf("Remote service endpoint %s not available\n\t%s", e.Endpoint, e.Err.Error())
|
||||
}
|
||||
|
||||
// BucketRemoteIdenticalToSource remote already exists for this target type.
|
||||
type BucketRemoteIdenticalToSource struct {
|
||||
GenericError
|
||||
Endpoint string
|
||||
}
|
||||
|
||||
func (e BucketRemoteIdenticalToSource) Error() string {
|
||||
return fmt.Sprintf("Remote service endpoint %s is self referential to current cluster", e.Endpoint)
|
||||
}
|
||||
|
||||
// BucketRemoteAlreadyExists remote already exists for this target type.
|
||||
type BucketRemoteAlreadyExists GenericError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user