summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-04-03 14:39:17 +0200
committermh <mh@immerda.ch>2011-04-03 14:39:17 +0200
commit4a5a3d04a8e45cb7666e3c270b9a3ae7a4786a70 (patch)
tree91db97ee9d143b87ae2f398113b089e69eca5b5b
parent84d4ee9db697e35299b5c9d157bb818af1088416 (diff)
find not search
-rw-r--r--files/master/lastruncheck2
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