See #5081 for further information.

This probably isn't the right fix but the current fix has broken
numerous people's parseonly hooks etc.

Signed-off-by: James Turnbull <[email protected]>
---
 lib/puppet/application/apply.rb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/puppet/application/apply.rb b/lib/puppet/application/apply.rb
index 59a95d3..701d510 100644
--- a/lib/puppet/application/apply.rb
+++ b/lib/puppet/application/apply.rb
@@ -65,7 +65,8 @@ class Puppet::Application::Apply < Puppet::Application
       Puppet[:manifest] = command_line.args.shift
     end
     begin
-      Puppet::Node::Environment.new(Puppet[:environment]).known_resource_types
+      
Puppet::Resource::TypeCollection.new(Puppet[:environment]).perform_initial_import
+      #Puppet::Node::Environment.new(Puppet[:environment]).known_resource_types
     rescue => detail
       Puppet.err detail
       exit 1
-- 
1.7.2.3

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to