diff options
author | Luke Kanies <luke@madstop.com> | 2008-07-02 22:00:54 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-07-02 22:00:54 -0500 |
commit | 4b6b22e8d64b6fe8c69d9925eedc703757ce3567 (patch) | |
tree | 6594a481770685620bc9048f7e05d0b0b566d451 | |
parent | d56deb378704dbb07ae616df011a2ed7cb375920 (diff) | |
download | puppet-4b6b22e8d64b6fe8c69d9925eedc703757ce3567.tar.gz puppet-4b6b22e8d64b6fe8c69d9925eedc703757ce3567.tar.xz puppet-4b6b22e8d64b6fe8c69d9925eedc703757ce3567.zip |
Adding logging when a node's facts can't be found
Signed-off-by: Luke Kanies <luke@madstop.com>
-rw-r--r-- | lib/puppet/node.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |