Skip to content

Commit

Permalink
fix(*): remove more global config ref
Browse files Browse the repository at this point in the history
  • Loading branch information
windmgc committed Sep 13, 2023
1 parent 0664553 commit 1bf5ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resty/aws/credentials/TokenFileWebIdentityCredentials.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ function TokenFileWebIdentityCredentials:refresh()
-- That's because this credentials class is part of the "CredentialProviderChain"
local AWS = require "resty.aws"
local aws = AWS {
region = global_config.region,
stsRegionalEndpoints = global_config.sts_regional_endpoints,
region = aws_config.global.region,
stsRegionalEndpoints = aws_config.global.sts_regional_endpoints,
}
local sts, err = aws:STS()
if not sts then
Expand Down

0 comments on commit 1bf5ada

Please sign in to comment.