projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
puppet 4 foo
[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
b38f5d5
..
0c64b22
100644
(file)
--- a/
modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb
+++ b/
modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb
@@
-3,8
+3,6
@@
module Puppet::Parser::Functions
host = args[0]
yamlfile = args[1]
- parser = Puppet::Parser::Parser.new(environment)
- parser.watch_file(yamlfile)
read_yaml = lambda { |yaml, host|
results = {}
@@
-42,7
+40,6
@@
module Puppet::Parser::Functions
}
require 'yaml'
- $KCODE = 'utf-8'
yaml = YAML.load_file(yamlfile)
ret = {}