From fc7f1b4f70d8e4b62852a0da0af21fcb67a1a89c Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 26 Nov 2007 15:26:05 -0600 Subject: Fixing #921, mostly by just deleting the existing test. I had already migrated all of the tests into rspec but forgot about these tests -- they were only in the rails/ subdir because people kept not running the parser/ tests after modifying the Rails code. --- lib/puppet/parser/collector.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/collector.rb b/lib/puppet/parser/collector.rb index 6dcded2f9..cdde51bee 100644 --- a/lib/puppet/parser/collector.rb +++ b/lib/puppet/parser/collector.rb @@ -14,8 +14,10 @@ class Puppet::Parser::Collector end else method = "collect_#{@form.to_s}" - changer = @form.to_s + "=" - objects = send(method).each { |obj| obj.send(changer, false) } + objects = send(method).each do |obj| + obj.virtual = false + obj.exported = false if form == :exported + end if objects.empty? return false else -- cgit