From ab94eacf9979d293ebffc8b3803b9cd179518bad Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 30 May 2011 10:18:46 +0100 Subject: [PATCH] let's try this Signed-off-by: Stephen Gran --- modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb | 3 ++- modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 = {} -- 2.20.1