On Wednesday, July 23, 2014 7:32:15 AM UTC-5, Cristian Falcas wrote: > > Hello all, > > Regarding my question with automated data binding. Here is how we set this > via the yaml backend: > > collectd::plugins::write_riemann::riemann_protocol: UDP > > We tried to use this with the json backend, but this never gets populated > in the class: > > {"collectd": > {"plugins": > {"write_riemann":{"riemann_protocol": "UDP"} > }}} > > Is the format we try to use wrong? >
Yes. The '::' in the YAML version are not special to YAML. In particular, they have no implication of nesting; they are just ordinary characters in that context, so the YAML form expresses a key "collectd::plugins::write_riemann::riemann_protocol" with associated value "UDP", the pair belonging to a (possibly-undelimited) top-level mapping. The JSON you present is altogether different. This should work, I think: "collectd::plugins::write_riemann::riemann_protocol": "UDP" John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fa12b3f5-8cb5-4335-a3d6-0dedd50b767c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.