yamlinfo: use different dir to list all nodes
authorPeter Palfrader <peter@palfrader.org>
Tue, 15 Oct 2019 11:02:26 +0000 (13:02 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 15 Oct 2019 11:02:26 +0000 (13:02 +0200)
commite50cda3666f187a73d78a32a526c81146b4f1602
treeeea641198e15603a450140cda868fe29287f8342
parentf5a5ce8713702acd7eec76d0aaa0168422e00ebd
yamlinfo: use different dir to list all nodes

We used Dir.entries('/var/lib/puppet/yaml/node/') to get a list of all
nodes.  That dir is now empty.  Switch to using
Dir.entries('/var/lib/puppet/yaml/facts/').

Both are probably bad, but yamlinfo() should be phased out in favor of
hiera/puppetdb anyhow, so for now this is a temporary fix.
modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb