Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
windmgc committed Feb 28, 2024
1 parent 8ef9c77 commit 132762f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/resty/aws/credentials/RemoteCredentials.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,9 @@ local function initialize()
({ http = 80, https = 443 })[FullUri.scheme]
end

-- get auth token
if aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN then
AuthToken = aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN
end

-- get auth token file path
if aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE then
AuthTokenFile = aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE
end
-- get auth token/file
AuthToken = aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN
AuthTokenFile = aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE

initialize = nil
end
Expand Down

0 comments on commit 132762f

Please sign in to comment.