Skip to content

Commit

Permalink
fix lua s3 client endpoint configure if set (#6629)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder authored Sep 20, 2023
1 parent bbe5f47 commit ceb97fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/actions/lua/storage/aws/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ func (c *S3Client) client() *s3.Client {
panic(err)
}
return s3.NewFromConfig(cfg, func(o *s3.Options) {
o.BaseEndpoint = &c.Endpoint
if c.Endpoint != "" {
o.BaseEndpoint = aws.String(c.Endpoint)
}
})
}

Expand Down

0 comments on commit ceb97fa

Please sign in to comment.