Update main.go

This commit is contained in:
Fortune Ngwenya 2023-09-28 10:53:17 +02:00 committed by GitHub
parent c7b5cef7f5
commit 418a37f2f1

View file

@ -143,7 +143,7 @@ func main() {
opts.Creds = credentials.NewIAM(configuration.IamEndpoint)
} else {
if (configuration.SkipSignature) {
opts.Creds = credentials.NewStatic(configuration.AccessKeyID, configuration.SecretAccessKey, "", SignatureType.SignatureAnonymous)
opts.Creds = credentials.NewStatic(configuration.AccessKeyID, configuration.SecretAccessKey, "", credentials.SignatureAnonymous)
} else {
opts.Creds = credentials.NewStaticV4(configuration.AccessKeyID, configuration.SecretAccessKey, "")
}