projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unique all ip addresses
[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
f53014d
..
42a4795
100644
(file)
--- a/
modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb
+++ b/
modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb
@@
-1,10
+1,9
@@
+require 'puppet/file_system'
+
module Puppet::Parser::Functions
newfunction(:yamlinfo, :type => :rvalue) do |args|
host = args[0]
module Puppet::Parser::Functions
newfunction(:yamlinfo, :type => :rvalue) do |args|
host = args[0]
- yamlfile = args[1]
- parser = Puppet::Parser::Parser.new(environment)
- parser.watch_file(yamlfile)
read_yaml = lambda { |yaml, host|
results = {}
read_yaml = lambda { |yaml, host|
results = {}
@@
-43,6
+42,7
@@
module Puppet::Parser::Functions
require 'yaml'
require 'yaml'
+ yamlfile = Puppet::Parser::Files.find_file('debian_org/misc/local.yaml', compiler.environment)
yaml = YAML.load_file(yamlfile)
ret = {}
yaml = YAML.load_file(yamlfile)
ret = {}