diff options
| author | Luke Kanies <luke@madstop.com> | 2008-03-06 13:20:30 -0700 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-03-06 13:20:30 -0700 |
| commit | 4c0f6c8502a0759519877f3e933e44ba980f7da2 (patch) | |
| tree | d8445e2b5065160fd8ad1248a01e04bf67d47228 /spec/unit/node | |
| parent | ee8fac6f24a35edf9234e49fb7aae71e625917f4 (diff) | |
| download | puppet-4c0f6c8502a0759519877f3e933e44ba980f7da2.tar.gz puppet-4c0f6c8502a0759519877f3e933e44ba980f7da2.tar.xz puppet-4c0f6c8502a0759519877f3e933e44ba980f7da2.zip | |
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
Diffstat (limited to 'spec/unit/node')
| -rwxr-xr-x | spec/unit/node/catalog.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
