From 701beccf8b29d82f4224666e8404c1721a622661 Mon Sep 17 00:00:00 2001 From: Martin Zobel-Helas Date: Sat, 18 Mar 2017 12:33:06 +0100 Subject: [PATCH] no more use of Puppet::Parser::Parser Signed-off-by: Martin Zobel-Helas --- modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb | 2 -- modules/puppetmaster/lib/puppet/parser/functions/yamlinfo.rb | 2 -- 2 files changed, 4 deletions(-) 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 = {} -- 2.20.1