From: Stephen Gran Date: Mon, 30 May 2011 09:18:46 +0000 (+0100) Subject: let's try this X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=ab94eacf9979d293ebffc8b3803b9cd179518bad;p=mirror%2Fdsa-puppet.git let's try this Signed-off-by: Stephen Gran --- diff --git a/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb b/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb index f98bf0ad0..5dec7b0de 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb @@ -5,7 +5,8 @@ module Puppet::Parser::Functions ipAddrs = args[0] yamlfile = args[1] - #self.interp.newfile(yamlfile) + parser = Puppet::Parser::Parser.new(environment) + parser.watch_file(yamlfile) $KCODE = 'utf-8' 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 = {}