summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/interpreter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/interpreter.rb')
-rw-r--r--lib/puppet/parser/interpreter.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb
index a11e870ab..5ddd82829 100644
--- a/lib/puppet/parser/interpreter.rb
+++ b/lib/puppet/parser/interpreter.rb
@@ -246,13 +246,21 @@ module Puppet
raise LoadError,
"storeconfigs is enabled but rails is unavailable"
end
- Puppet::Rails.init
end
+
+ Puppet::Rails.init
+
+ # We store all of the objects, even the collectable ones
Puppet::Rails::Host.store(
:objects => objects,
:host => client,
:facts => facts
)
+
+ # Now that we've stored everything, we need to strip out
+ # the collectable objects so that they are not sent on
+ # to the host
+ objects.collectstrip!
end
return objects