From 897539e857b0da9145f15648b6aa2ef124ec1a19 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 6 Jan 2009 16:13:17 -0600 Subject: 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 --- lib/puppet/type.rb | 4 ---- 1 file changed, 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 -- cgit