diff options
-rw-r--r-- | files/master/lastruncheck | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/master/lastruncheck b/files/master/lastruncheck index 9eff27e..fe67d21 100644 --- a/files/master/lastruncheck +++ b/files/master/lastruncheck @@ -24,7 +24,7 @@ module Puppet::Lastcheck return @facts_hosts if @facts_hosts require 'puppet/indirector/facts/yaml' @facts_hosts = Puppet::Node::Facts.search("*").collect do |fqdn| - if node = Puppet::Node::Facts.search(fqdn) + if node = Puppet::Node::Facts.find(fqdn) { :hostname => node.name, :expired => node.expired?, :timestamp => node.values[:_timestamp], :expiration => node.expiration } end end.compact |