Skip to content

Commit

Permalink
Use getter instead of property for Session
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Bush <mbbush@gmail.com>
  • Loading branch information
mbbush committed Apr 21, 2024
1 parent 0b9a875 commit af4029c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/clients/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func configureNoForkAWSClient(ctx context.Context, ps *terraform.Setup, config *
// an http.RoundTripper. To learn how SDK v1 session handler phases
// map to SDK v2 middleware stack steps, see:
// https://aws.github.io/aws-sdk-go-v2/docs/migrating/#handler-phases
tfAwsConnsClient.Session.Handlers.Send.PushBack(func(r *awsrequest.Request) {
tfAwsConnsClient.Session(ctx).Handlers.Send.PushBack(func(r *awsrequest.Request) {

Check failure on line 243 in internal/clients/aws.go

View workflow job for this annotation

GitHub Actions / ci / local-deploy

tfAwsConnsClient.Session undefined (type *conns.AWSClient has no field or method Session)

Check failure on line 243 in internal/clients/aws.go

View workflow job for this annotation

GitHub Actions / ci / publish-artifacts

tfAwsConnsClient.Session undefined (type *conns.AWSClient has no field or method Session)

Check failure on line 243 in internal/clients/aws.go

View workflow job for this annotation

GitHub Actions / ci / publish-artifacts

tfAwsConnsClient.Session undefined (type *conns.AWSClient has no field or method Session)

Check failure on line 243 in internal/clients/aws.go

View workflow job for this annotation

GitHub Actions / ci / unit-tests

tfAwsConnsClient.Session undefined (type *conns.AWSClient has no field or method Session)
// In case of API errors (or no errors), r.Error is nil.
// In case of connection errors, r.Error is non-nil.
if r.Error == nil {
Expand Down

0 comments on commit af4029c

Please sign in to comment.