Skip to content

Commit

Permalink
Fix: use ReadAuthSettings to get authSettings (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwcyu authored Jun 26, 2024
1 parent a6b3ce1 commit 5fdaab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/datasource/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewDatasource(ctx context.Context, xrayClientFactory XrayClientFactory, set
resMux.HandleFunc("/accounts", ds.GetAccounts)
ds.ResourceMux = httpadapter.New(resMux)

authSettings, _ := awsds.ReadAuthSettingsFromContext(ctx)
authSettings := awsds.ReadAuthSettings(ctx)
ds.authSettings = *authSettings
ds.sessions = awsds.NewSessionCache()
return ds
Expand Down

0 comments on commit 5fdaab7

Please sign in to comment.