X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fpuppetmaster%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fyamlinfo.rb;h=cb53ada9afb9474199d97cd69940033462007071;hb=6ef393a9864338c2e1085fa80283e8fda848685e;hp=4f6227f118bdae4bc1918fbebc4eb03becd21c95;hpb=55a63628f8e7bbc120abc8378ae119243eb622ce;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 4f6227f11..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 = {}