Skip to content

Commit

Permalink
Fix: use ReadAuthSettings to get authSettings (#333)
Browse files Browse the repository at this point in the history
* Fix: use ReadAuthSettings to get authSettings

* Release 1.22.1
  • Loading branch information
kevinwcyu authored Jun 26, 2024
1 parent b456752 commit 389d857
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 1.22.1

- Fix: use ReadAuthSettings to get authSettings in [#333](https://github.com/grafana/iot-sitewise-datasource/pull/333)

## 1.22.0

- Update to use GetSessionWithAuthSettings [#330](https://github.com/grafana/iot-sitewise-datasource/pull/330)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grafana-iot-sitewise-datasource",
"version": "1.22.0",
"version": "1.22.1",
"description": "View IoT Sitewise data in grafana",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
Expand Down
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 389d857

Please sign in to comment.