From 98e79f8b7dbbdcb29c91b6099569e180bd8267c7 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 24 Sep 2008 17:46:57 -0500 Subject: Fixed #1472 -- defined, exported resources in the current compile now get expanded correctly. This was working for defined resources in the db, but not in the current compile. I just had to mark the resources as non-exported. --- lib/puppet/parser/collector.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/parser/collector.rb b/lib/puppet/parser/collector.rb index bcba9528e..0f9072510 100644 --- a/lib/puppet/parser/collector.rb +++ b/lib/puppet/parser/collector.rb @@ -72,7 +72,8 @@ class Puppet::Parser::Collector def collect_exported # First get everything from the export table. Just reuse our # collect_virtual method but tell it to use 'exported? for the test. - resources = collect_virtual(true).reject { |r| ! r.virtual? } + resources = collect_virtual(true).reject { |r| ! r.virtual? }.each { |r| r.exported = false } + #resources = collect_virtual(true).reject { |r| ! r.virtual? } count = resources.length -- cgit