diff --git a/CHANGELOG.md b/CHANGELOG.md index bf5b73b3..91a2c8ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index caba1135..9c731505 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pkg/sitewise/datasource.go b/pkg/sitewise/datasource.go index 2038b3a1..9f31fdfa 100644 --- a/pkg/sitewise/datasource.go +++ b/pkg/sitewise/datasource.go @@ -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