summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-03-03 23:20:29 -0600
committerJames Turnbull <james@lovedthanlost.net>2009-03-04 19:26:17 +1100
commit9577d3af929727ac1e7b5e7e54e4491990d55995 (patch)
tree0ec94d7a9281093b9cb9392bbd5d12978f6ca857 /lib/puppet
parent719a8df167b7456fe0a1b7b05aff246aa6f73d39 (diff)
downloadpuppet-9577d3af929727ac1e7b5e7e54e4491990d55995.tar.gz
puppet-9577d3af929727ac1e7b5e7e54e4491990d55995.tar.xz
puppet-9577d3af929727ac1e7b5e7e54e4491990d55995.zip
Fixing #2013 - prefetching had a mismatch between type and title
The ParsedFile types seem to be the main one that suffers from this, but the transactions were using the resource titles, not names, so resources were often not getting prefetched correctly. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/transaction.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb
index f3defb7a2..43ba8582c 100644
--- a/lib/puppet/transaction.rb
+++ b/lib/puppet/transaction.rb
@@ -480,7 +480,7 @@ class Transaction
@catalog.vertices.each do |resource|
if provider = resource.provider and provider.class.respond_to?(:prefetch)
prefetchers[provider.class] ||= {}
- prefetchers[provider.class][resource.title] = resource
+ prefetchers[provider.class][resource.name] = resource
end
end