mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Cleanup remote targets automatically on replication config removal. (#16221)
This commit is contained in:
@@ -424,14 +424,15 @@ func (e BucketRemoteTargetNotFound) Error() string {
|
||||
|
||||
// RemoteTargetConnectionErr remote target connection failure.
|
||||
type RemoteTargetConnectionErr struct {
|
||||
Err error
|
||||
Bucket string
|
||||
Endpoint string
|
||||
Err error
|
||||
Bucket string
|
||||
Endpoint string
|
||||
AccessKey string
|
||||
}
|
||||
|
||||
func (e RemoteTargetConnectionErr) Error() string {
|
||||
if e.Bucket != "" {
|
||||
return fmt.Sprintf("Remote service endpoint offline or target bucket/remote service credentials invalid: %s \n\t%s", e.Bucket, e.Err.Error())
|
||||
return fmt.Sprintf("Remote service endpoint offline, target bucket: %s or remote service credentials: %s invalid \n\t%s", e.Bucket, e.AccessKey, e.Err.Error())
|
||||
}
|
||||
return fmt.Sprintf("Remote service endpoint %s not available\n\t%s", e.Endpoint, e.Err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user