Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

find not search

  • Loading branch information...
commit 4a5a3d04a8e45cb7666e3c270b9a3ae7a4786a70 1 parent 84d4ee9
@duritong duritong authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  files/master/lastruncheck
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.