summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2010-05-17 12:04:40 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit3dfb7626fdc775803b94b0e009ece41198acde29 (patch)
treeaaf810bcbf7b1ca909d4923c688d82c980e712da /lib
parent0d4fd60c7c143cc1f4e4b0f99f359c09cbfbf21e (diff)
downloadpuppet-3dfb7626fdc775803b94b0e009ece41198acde29.tar.gz
puppet-3dfb7626fdc775803b94b0e009ece41198acde29.tar.xz
puppet-3dfb7626fdc775803b94b0e009ece41198acde29.zip
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 <luke@puppetlabs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/resource/catalog.rb2
1 files changed, 1 insertions, 1 deletions
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)