+require 'puppet/file_system'
+
module Puppet::Parser::Functions
newfunction(:yamlinfo, :type => :rvalue) do |args|
host = args[0]
- yamlfile = args[1]
read_yaml = lambda { |yaml, host|
results = {}
require 'yaml'
+ yamlfile = Puppet::Parser::Files.find_file('debian_org/misc/local.yaml', compiler.environment)
yaml = YAML.load_file(yamlfile)
ret = {}