diff options
author | Luke Kanies <luke@madstop.com> | 2008-09-24 17:46:57 -0500 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-09-25 09:35:27 +1000 |
commit | 98e79f8b7dbbdcb29c91b6099569e180bd8267c7 (patch) | |
tree | bc20921e7090e3893fd10f36e499624475cca3f0 /lib | |
parent | 0040bc87a1a4afac3a97165cd2e6e3c38f373261 (diff) | |
download | puppet-98e79f8b7dbbdcb29c91b6099569e180bd8267c7.tar.gz puppet-98e79f8b7dbbdcb29c91b6099569e180bd8267c7.tar.xz puppet-98e79f8b7dbbdcb29c91b6099569e180bd8267c7.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/collector.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |