golja-influxdb
golja-influxdb copied to clipboard
Graphite array walk fixed
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
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.