From 4c0f6c8502a0759519877f3e933e44ba980f7da2 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 6 Mar 2008 13:20:30 -0700 Subject: Fix for 1094 Replace the catalog with the newly created one when converting to ral types. The aliases were being lost because the resources had references to the old catalog being converted --- spec/unit/node/catalog.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/unit/node') diff --git a/spec/unit/node/catalog.rb b/spec/unit/node/catalog.rb index 604dabbb6..360dd87f2 100755 --- a/spec/unit/node/catalog.rb +++ b/spec/unit/node/catalog.rb @@ -304,6 +304,8 @@ describe Puppet::Node::Catalog, " when converting to a RAL catalog" do resource = stub 'resource', :name => "changer2", :title => "changer2", :ref => "Test[changer2]", :catalog= => nil, :remove => nil + #changer is going to get duplicated as part of a fix for aliases 1094 + changer.expects(:dup).returns(changer) changer.expects(:to_type).returns(resource) newconfig = nil -- cgit