From 7978be59090b0bb25c2bc29ecb16ade33a8f50f6 Mon Sep 17 00:00:00 2001 From: Nick Lewis Date: Tue, 6 Jul 2010 17:00:18 -0700 Subject: [#3906] Fixed missing constant Puppet::Rails when using storeconfigs The hook for storeconfig will now require 'puppet/rails' if the setting is set to true. It was previously being indirectly required via parser/interpreter, which was removed. --- lib/puppet.rb | 5 ----- lib/puppet/defaults.rb | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/puppet.rb b/lib/puppet.rb index b5c480636..fbf5ccf73 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -168,8 +168,3 @@ require 'puppet/module' require 'puppet/util/storage' require 'puppet/status' require 'puppet/file_bucket/file' - -if Puppet[:storeconfigs] - require 'puppet/rails' -end - diff --git a/lib/puppet/defaults.rb b/lib/puppet/defaults.rb index ed0623127..6ded3c0fe 100644 --- a/lib/puppet/defaults.rb +++ b/lib/puppet/defaults.rb @@ -763,6 +763,7 @@ module Puppet require 'puppet/node' require 'puppet/node/facts' if value + require 'puppet/rails' raise "StoreConfigs not supported without ActiveRecord 2.1 or higher" unless Puppet.features.rails? Puppet::Resource::Catalog.cache_class = :active_record unless Puppet.settings[:async_storeconfigs] Puppet::Node::Facts.cache_class = :active_record -- cgit