This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

find not search

  • Loading branch information...
duritong committed Apr 3, 2011
1 parent 84d4ee9 commit 4a5a3d04a8e45cb7666e3c270b9a3ae7a4786a70
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 4a5a3d0

Please sign in to comment.