X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fpuppetmaster%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fyamlinfo.rb;h=cb53ada9afb9474199d97cd69940033462007071;hb=6ef393a9864338c2e1085fa80283e8fda848685e;hp=0d12c661433ef26a59468f623d701d4c9aa4caf6;hpb=7279eedc32f3735e78c8be28c07c3ce75aab697f;p=mirror%2Fdsa-puppet.git diff --git a/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb b/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb index 0d12c6614..cb53ada9a 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb @@ -3,7 +3,8 @@ module Puppet::Parser::Functions host = args[0] yamlfile = args[1] - self.interp.newfile(yamlfile) + parser = Puppet::Parser::Parser.new(environment) + parser.watch_file(yamlfile) def read_yaml(yaml, host) results = {}