From b5af184e6f7da2bf52e63d1a4e331725b5e13451 Mon Sep 17 00:00:00 2001 From: Kevin Yu Date: Wed, 26 Jun 2024 10:39:23 -0700 Subject: [PATCH 1/2] Fix: use ReadAuthSettings to get authSettings --- pkg/sitewise/datasource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 449ecf4da647d4b775820579713e403c8417e8fc Mon Sep 17 00:00:00 2001 From: Kevin Yu Date: Wed, 26 Jun 2024 10:40:54 -0700 Subject: [PATCH 2/2] Release 1.22.1 --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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",