From 225e0fc773dd67a8bc9632fcfd4709bbef9ed534 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Mon, 7 Aug 2023 10:27:54 +0200 Subject: [PATCH] (#98) Fix broken HTTP calls This is a regression introduced in https://github.com/puppetlabs/influxdb/pull/93/files#diff-f4bd86f81624aeef40890bc9025479127483226db7734a1d369b5e20ef434d3aR40 --- lib/puppet/functions/influxdb/retrieve_token.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/functions/influxdb/retrieve_token.rb b/lib/puppet/functions/influxdb/retrieve_token.rb index de27abe..c804b3b 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)