dgolja / golja-influxdb

Puppet module for InfluxDB
Apache License 2.0
19 stars 73 forks source link

Graphite array walk fixed #58

Open mrh666 opened 7 years ago

mrh666 commented 7 years ago

Graphite array walk fixed

Before fix puppet run with Graphite option caused an error:

[root@influxdbnode-172 ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template influxdb/influxdb.conf.erb:
  Filepath: /etc/puppet/modules/influxdb/templates/influxdb.conf.erb
  Line: 124
  Detail: undefined method `key' for #<Hash:0x7f57fa551398>
 at /etc/puppet/modules/influxdb/manifests/server/config.pp:100 on node influxdbnode-lwgh2dllyq2uld9
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
codylane commented 7 years ago

Hey @mrh666 - I've also addressed this in my pull request but you can find the current code here: https://github.com/codylane/golja-influxdb/tree/devel.

Please let me know if you have questions.