Update main.go

This commit is contained in:
Fortune Ngwenya 2023-09-28 10:53:17 +02:00 committed by Lena Fuhrimann
parent 406e608b7d
commit decff5515c

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, "")
}