From 1dfd2b6ba30f7a4c06688e18d0d6cd73a2e45d91 Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Tue, 27 Jul 2010 10:53:19 -0700 Subject: [#4381] extlookup shouldn't trigger reparses of .pp files extlookup was adding its data files to the list of watched source files. This causes the .pp manifests to be re-parsed whenever the .csv files change, which is no longer necessary, as the .csv files are already reparsed on every function call. --- lib/puppet/parser/functions/extlookup.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib') diff --git a/lib/puppet/parser/functions/extlookup.rb b/lib/puppet/parser/functions/extlookup.rb index 177d9aef8..a4786f5da 100644 --- a/lib/puppet/parser/functions/extlookup.rb +++ b/lib/puppet/parser/functions/extlookup.rb @@ -122,9 +122,6 @@ module Puppet::Parser::Functions desired = nil datafiles.each do |file| - parser = Puppet::Parser::Parser.new(environment) - parser.watch_file(file) if File.exists?(file) - if desired.nil? if File.exists?(file) result = CSV.read(file).find_all do |r| -- cgit