Skip to content

Commit

Permalink
(#98) Fix broken HTTP calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 7, 2023
1 parent 5f919de commit 872139a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/functions/influxdb/retrieve_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def retrieve_token(uri, token_name, admin_token, use_system_store = false)
end

response = client.get(URI(uri + '/api/v2/authorizations'),
headers: { 'Authorization' => "Token #{admin_token}", options: client_options })
headers: { 'Authorization' => "Token #{admin_token}" }, options: client_options )

if response.success?
body = JSON.parse(response.body)
Expand Down

0 comments on commit 872139a

Please sign in to comment.