diff options
-rwxr-xr-x | ext/puppetlast | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/puppetlast b/ext/puppetlast index d9b698cfe..e52529dd7 100755 --- a/ext/puppetlast +++ b/ext/puppetlast @@ -10,6 +10,6 @@ Puppet.parse_config Puppet[:name] = "puppetmasterd" Puppet::Node::Facts.terminus_class = :yaml -Puppet::Node::Facts.search("*").sort.each do |node| +Puppet::Node::Facts.search("*").sort { |a,b| a.name <=> b.name }.each do |node| puts "#{node.name} #{node.expired? ? 'cached expired, ' : ''}checked in #{((Time.now - node.values[:_timestamp]) / 60).floor} minutes ago" end |