summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-07-27 10:53:19 -0700
committermarkus <markus@AVA-351181.(none)>2010-08-03 15:19:43 -0700
commit1dfd2b6ba30f7a4c06688e18d0d6cd73a2e45d91 (patch)
tree7addb00d93c1bbf2fea0d566acca677345826ef3 /lib
parentbe2b1f360fc15596098280265e6aa76e8043eb92 (diff)
downloadpuppet-1dfd2b6ba30f7a4c06688e18d0d6cd73a2e45d91.tar.gz
puppet-1dfd2b6ba30f7a4c06688e18d0d6cd73a2e45d91.tar.xz
puppet-1dfd2b6ba30f7a4c06688e18d0d6cd73a2e45d91.zip
[#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.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/extlookup.rb3
1 files changed, 0 insertions, 3 deletions
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|