From 038b9c8d571581f13acc202a9dbbcf7e1f325ab3 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 6 Dec 2007 16:08:56 -0600 Subject: Fixing #923. Resources that are collected on the local host are no longer marked as not exported. --- lib/puppet/parser/collector.rb | 1 - spec/unit/parser/collector.rb | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/lib/puppet/parser/collector.rb b/lib/puppet/parser/collector.rb index 9dd07f31a..63eb87896 100644 --- a/lib/puppet/parser/collector.rb +++ b/lib/puppet/parser/collector.rb @@ -16,7 +16,6 @@ class Puppet::Parser::Collector method = "collect_#{@form.to_s}" objects = send(method).each do |obj| obj.virtual = false - obj.exported = false if form == :exported end if objects.empty? return false diff --git a/spec/unit/parser/collector.rb b/spec/unit/parser/collector.rb index c0e5f2298..450176f30 100755 --- a/spec/unit/parser/collector.rb +++ b/spec/unit/parser/collector.rb @@ -243,19 +243,6 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do @collector.evaluate.should == [one, two] end - it "should mark all returned resources as not exported" do - stub_rails(true) - - one = stub 'one', :type => "Mytype", :virtual? => true, :exported? => true - - one.expects(:exported=).with(false) - one.stubs(:virtual=) - - @compile.expects(:resources).returns([one]) - - @collector.evaluate.should == [one] - end - it "should mark all returned resources as not virtual" do stub_rails(true) -- cgit