projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yamlinfo: use different dir to list all nodes
[mirror/dsa-puppet.git]
/
modules
/
puppetmaster
/
lib
/
puppet
/
parser
/
functions
/
yamlinfo.rb
diff --git
a/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb
b/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb
index
efab0c2
..
6590d62
100644
(file)
--- a/
modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb
+++ b/
modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb
@@
-42,7
+42,7
@@
module Puppet::Parser::Functions
ret = {}
if host == '*'
ret = {}
if host == '*'
- Dir.entries('/var/lib/puppet/yaml/
node
/').each do |fname|
+ Dir.entries('/var/lib/puppet/yaml/
facts
/').each do |fname|
next unless fname =~ /(.*)\.yaml$/
host_name = $1
ret[host_name] = read_yaml.call(yaml, host_name)
next unless fname =~ /(.*)\.yaml$/
host_name = $1
ret[host_name] = read_yaml.call(yaml, host_name)