mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Do not use a chain for S3 tiering to return better error messages (#18030)
When using a chain provider all providers do not return a valid access and secret key, an anonymous request is sent, which makes it hard for users to figure out what is going on In the case of S3 tiering, when AWS IAM temporary account generation returns an error, an anonymous login will be used because of the chain provider. Avoid this and use the AWS IAM provider directly to get a good error message.
This commit is contained in:
@@ -117,7 +117,7 @@ type tierPermErr struct {
|
||||
}
|
||||
|
||||
func (te tierPermErr) Error() string {
|
||||
return fmt.Sprintf("failed to perform %s %v", te.Op, te.Err)
|
||||
return fmt.Sprintf("failed to perform %s: %v", te.Op, te.Err)
|
||||
}
|
||||
|
||||
func errIsTierPermError(err error) bool {
|
||||
|
||||
Reference in New Issue
Block a user