Skip to content

Commit

Permalink
Fix: use ReadAuthSettings to get authSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwcyu committed Jun 26, 2024
1 parent b456752 commit b5af184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sitewise/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NewDatasource(ctx context.Context, settings backend.DataSourceInstanceSetti
}

sessions := awsds.NewSessionCache()
authSettings, _ := awsds.ReadAuthSettingsFromContext(ctx)
authSettings := awsds.ReadAuthSettings(ctx)
clientGetter := func(region string) (swclient client.SitewiseClient, err error) {
swclient, err = client.GetClient(region, cfg, sessions.GetSessionWithAuthSettings, authSettings)
return
Expand Down

0 comments on commit b5af184

Please sign in to comment.