diff options
author | James Turnbull <james@lovedthanlost.net> | 2008-08-20 22:56:41 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-08-20 22:56:41 +1000 |
commit | 1729de17a939aa56ba22fbe6851fa60946ac04ed (patch) | |
tree | 64454b68fd8eff772bf01b84e8d524e118c31e83 | |
parent | b6609ee5f4e6bffc467da4f3f9623f22e9e07095 (diff) | |
download | puppet-1729de17a939aa56ba22fbe6851fa60946ac04ed.tar.gz puppet-1729de17a939aa56ba22fbe6851fa60946ac04ed.tar.xz puppet-1729de17a939aa56ba22fbe6851fa60946ac04ed.zip |
Updates to ext/puppetlast to support multiple hosts
-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 |