summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-26 15:26:05 -0600
committerLuke Kanies <luke@madstop.com>2007-11-26 15:26:05 -0600
commitfc7f1b4f70d8e4b62852a0da0af21fcb67a1a89c (patch)
tree6f6278277bd5b3c641a0f017a2fc423bcb161172 /lib/puppet
parent9311bdde6283a00e0f32b41e8171fc75c976ed97 (diff)
downloadpuppet-fc7f1b4f70d8e4b62852a0da0af21fcb67a1a89c.tar.gz
puppet-fc7f1b4f70d8e4b62852a0da0af21fcb67a1a89c.tar.xz
puppet-fc7f1b4f70d8e4b62852a0da0af21fcb67a1a89c.zip
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.
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/parser/collector.rb6
1 files changed, 4 insertions, 2 deletions
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