let's try this
authorStephen Gran <steve@lobefin.net>
Mon, 30 May 2011 09:18:46 +0000 (10:18 +0100)
committerStephen Gran <steve@lobefin.net>
Mon, 30 May 2011 09:18:46 +0000 (10:18 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb
modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb

index f98bf0a..5dec7b0 100644 (file)
@@ -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'
 
index 4f6227f..cb53ada 100644 (file)
@@ -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 = {}