summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-01-06 16:13:17 -0600
committerJames Turnbull <james@lovedthanlost.net>2009-02-11 08:39:40 +1100
commit897539e857b0da9145f15648b6aa2ef124ec1a19 (patch)
tree10841570300bfaadaa3638820305298ce660a75f
parent012efe359fdaebd738727e42bb9b520ac48fdecf (diff)
downloadpuppet-897539e857b0da9145f15648b6aa2ef124ec1a19.tar.gz
puppet-897539e857b0da9145f15648b6aa2ef124ec1a19.tar.xz
puppet-897539e857b0da9145f15648b6aa2ef124ec1a19.zip
Removing a redundant instance prefect call.
For some reason, Puppet::Type#evaluate was calling 'prefetch' on instances that support it, but prefetching is only a class-level functionality, normally -- in fact, it makes no sense unless done at the class level. This patch just removes the code. Signed-off-by: Luke Kanies <luke@madstop.com>
-rw-r--r--lib/puppet/type.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb
index 7e8654921..b57c74b95 100644
--- a/lib/puppet/type.rb
+++ b/lib/puppet/type.rb
@@ -822,10 +822,6 @@ class Type
end
@evalcount += 1
- if p = self.provider and p.respond_to?(:prefetch)
- p.prefetch
- end
-
# this only operates on properties, not properties + children
# it's important that we call retrieve() on the type instance,
# not directly on the property, because it allows the type to override