Skip to content

Commit 80013eb

Browse files
committed
Updated plugin.go
1 parent 1390d9f commit 80013eb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

plugin.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,7 @@ func (p *Plugin) createS3Client() *s3.S3 {
489489
})
490490

491491
// Create new client with same config but updated credentials
492-
client = s3.New(sess, &aws.Config{
493-
Region: aws.String(p.Region),
494-
Endpoint: &p.Endpoint,
495-
DisableSSL: aws.Bool(strings.HasPrefix(p.Endpoint, "http://")),
496-
S3ForcePathStyle: aws.Bool(p.PathStyle),
497-
Credentials: creds,
498-
})
492+
client = s3.New(sess, &aws.Config{Credentials: creds})
499493
}
500494

501495
return client

0 commit comments

Comments
 (0)