no more use of Puppet::Parser::Parser
authorMartin Zobel-Helas <zobel@debian.org>
Sat, 18 Mar 2017 11:33:06 +0000 (12:33 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Sat, 18 Mar 2017 11:33:06 +0000 (12:33 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb
modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb

index ca0d295..4359285 100644 (file)
@@ -5,8 +5,6 @@ module Puppet::Parser::Functions
 
     ipAddrs = args[0]
     yamlfile = args[1]
-    parser = Puppet::Parser::Parser.new(environment)
-    parser.watch_file(yamlfile)
 
     ans = {"name" => "unknown"}
     yaml = YAML.load_file(yamlfile)
index f53014d..0c64b22 100644 (file)
@@ -3,8 +3,6 @@ module Puppet::Parser::Functions
 
     host = args[0]
     yamlfile = args[1]
-    parser = Puppet::Parser::Parser.new(environment)
-    parser.watch_file(yamlfile)
 
     read_yaml = lambda { |yaml, host|
       results = {}