From 4b6b22e8d64b6fe8c69d9925eedc703757ce3567 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 2 Jul 2008 22:00:54 -0500 Subject: Adding logging when a node's facts can't be found Signed-off-by: Luke Kanies --- lib/puppet/node.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/puppet/node.rb b/lib/puppet/node.rb index 14d0f6ac7..afa18f565 100644 --- a/lib/puppet/node.rb +++ b/lib/puppet/node.rb @@ -75,6 +75,8 @@ class Puppet::Node def fact_merge if facts = Puppet::Node::Facts.find(name) merge(facts.values) + else + Puppet.warning "Could not find facts for %s; you probably have a discrepancy between the node and fact names" % name end end -- cgit