summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-08-14 13:52:03 -0700
committerJames Turnbull <james@lovedthanlost.net>2009-08-18 07:44:54 +1000
commit7e0924737d817644402b1c3d2d5abb2cf006e76b (patch)
treeef9edd6853bdedb7ad7e4942844fe106f05329b7 /lib
parenta35e9bf918db0f6fca45d8b0b002a372cff4f982 (diff)
downloadpuppet-7e0924737d817644402b1c3d2d5abb2cf006e76b.tar.gz
puppet-7e0924737d817644402b1c3d2d5abb2cf006e76b.tar.xz
puppet-7e0924737d817644402b1c3d2d5abb2cf006e76b.zip
Fixing fact-missing problem when puppet.conf is reparsed
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/indirector/node/active_record.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/indirector/node/active_record.rb b/lib/puppet/indirector/node/active_record.rb
index ab33af4b0..7b1ef9242 100644
--- a/lib/puppet/indirector/node/active_record.rb
+++ b/lib/puppet/indirector/node/active_record.rb
@@ -4,4 +4,10 @@ require 'puppet/node'
class Puppet::Node::ActiveRecord < Puppet::Indirector::ActiveRecord
use_ar_model Puppet::Rails::Host
+
+ def find(request)
+ node = super
+ node.fact_merge
+ node
+ end
end