I had a lot of fun last night trying to port the h...
# puppet
i
I had a lot of fun last night trying to port the hocon file management straight into stdlib to_json(_pretty) felt like I'm getting somewhere, and found what I think may work, but I've hit a bug which I think I understand, but my ruby is not strong enough to validate, if I could get confirmation / rejection that I've worked this out right, pushed a little demo example to explain https://github.com/ikonia/puppet-puppet/blob/facter_to_json/manifests/agent/facter.pp - lines 30-44 validation is fine, but when the client runs it, I get '*Error: Could not initialize global default settings: no implicit conversion of Array into Hash'* if I don't do this nested, it works, what I think is happening is the first parameter of stdlib::to_json is expected to be a hash or array, so when I use the $blocked array in the nested value, it can't evaluate that as a hash/array because it's not 'the first input' any more (the first input is setting 'fact-groups' I had a look at the ruby and I 'think' that's what's happening