puppetlabs / influxdb

2 stars 22 forks source link

Error after module update v2.2.0->v2.3.1 #98

Closed bastelfreak closed 11 months ago

bastelfreak commented 1 year ago

Describe the Bug

On my influxdb node I see the following error since the upgrade:

Error: {:"Unable to retrieve puppet telegraf token"=>"undefined method `strip' for {}:Hash"}

Expected Behavior

I expected no error/no changes.

Steps to Reproduce

Environment

Additional Context

I assume it's coming from https://github.com/puppetlabs/influxdb/blob/5f919de1afaf3d318875f182fa5e00cf10d9d17b/lib/puppet/functions/influxdb/retrieve_token.rb#L51

bastelfreak commented 1 year ago

https://github.com/puppetlabs/influxdb/blame/5f919de1afaf3d318875f182fa5e00cf10d9d17b/lib/puppet/functions/influxdb/retrieve_token.rb#L40

is that line actually correct? The client_options are passed in the header?

m0dular commented 11 months ago

Fixed in #99