diff options
author | mh <mh@immerda.ch> | 2011-04-03 14:12:05 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-04-03 14:12:05 +0200 |
commit | 84d4ee9db697e35299b5c9d157bb818af1088416 (patch) | |
tree | 20d99e51f06720b8078f05efee8f35a9600e3b57 /files | |
parent | 7ea9ad17cab2544875d4934a90522dd74f0b6396 (diff) |
fix lastruncheck to be compatible for 2.6.7
Diffstat (limited to 'files')
-rw-r--r-- | files/master/lastruncheck | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/files/master/lastruncheck b/files/master/lastruncheck index babe74f..9eff27e 100644 --- a/files/master/lastruncheck +++ b/files/master/lastruncheck @@ -23,9 +23,11 @@ module Puppet::Lastcheck def facts_hosts return @facts_hosts if @facts_hosts require 'puppet/indirector/facts/yaml' - @facts_hosts = Puppet::Node::Facts.search("*").collect do |node| - { :hostname => node.name, :expired => node.expired?, :timestamp => node.values[:_timestamp], :expiration => node.expiration } - end + @facts_hosts = Puppet::Node::Facts.search("*").collect do |fqdn| + if node = Puppet::Node::Facts.search(fqdn) + { :hostname => node.name, :expired => node.expired?, :timestamp => node.values[:_timestamp], :expiration => node.expiration } + end + end.compact end end end |