From 3dfb7626fdc775803b94b0e009ece41198acde29 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 17 May 2010 12:04:40 -0700 Subject: Fixing Catalog conversion Parser resources were not correctly being converted to Puppet::Resource instances, which meant a ton more information was being kept in the catalog. This probably didn't have much affect in real life, because of how we serialized, but it made debugging a lot harder. Signed-off-by: Luke Kanies --- lib/puppet/resource/catalog.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/resource/catalog.rb b/lib/puppet/resource/catalog.rb index 97c036b03..3a28f45c8 100644 --- a/lib/puppet/resource/catalog.rb +++ b/lib/puppet/resource/catalog.rb @@ -551,7 +551,7 @@ class Puppet::Resource::Catalog < Puppet::SimpleGraph #Aliases aren't working in the ral catalog because the current instance of the resource #has a reference to the catalog being converted. . . So, give it a reference to the new one #problem solved. . . - if resource.is_a?(Puppet::Resource) + if resource.class == Puppet::Resource resource = resource.dup resource.catalog = result elsif resource.is_a?(Puppet::TransObject) -- cgit