Try && instead of and
[mirror/dsa-puppet.git] / modules / puppetmaster / lib / puppet / parser / functions / yamlinfo.rb
index 4cc88f0..cb53ada 100644 (file)
@@ -3,6 +3,7 @@ module Puppet::Parser::Functions
 
     host = args[0]
     yamlfile = args[1]
+    parser = Puppet::Parser::Parser.new(environment)
     parser.watch_file(yamlfile)
 
     def read_yaml(yaml, host)