diff --git a/lib/puppet/functions/influxdb/retrieve_token.rb b/lib/puppet/functions/influxdb/retrieve_token.rb index de27abe..ca2ef0e 100644 --- a/lib/puppet/functions/influxdb/retrieve_token.rb +++ b/lib/puppet/functions/influxdb/retrieve_token.rb @@ -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)