From: Martin Zobel-Helas Date: Sat, 18 Mar 2017 11:33:06 +0000 (+0100) Subject: no more use of Puppet::Parser::Parser X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=701beccf8b29d82f4224666e8404c1721a622661;p=mirror%2Fdsa-puppet.git no more use of Puppet::Parser::Parser Signed-off-by: Martin Zobel-Helas --- diff --git a/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb b/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb index ca0d2957c..43592854c 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb @@ -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) diff --git a/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb b/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb index f53014dee..0c64b22e8 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb @@ -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 = {}