| Two pieces of feedback from the docs site: Url: https://puppet.com/docs/puppetdb/6.0/api/query/tutorial.html#querying-with-puppet-code Comment: In the "Querying with Puppet code" section, the example use ".each" but each returns the original array: to return a new array composed of the processed items, one should use the map() function. .each should be replaced by .map in this example. Thanks Url: https://puppet.com/docs/puppetdb/6.0/api/query/tutorial.html#querying-with-puppet-code Comment: https://puppet.com/docs/puppetdb/6.0/api/query/tutorial.html#querying-with-puppet-code the example is great, and wrong. `each` needs to be `map`. At least in my case it that's what solved it. |