summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-08-20 22:56:41 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-08-20 22:56:41 +1000
commit1729de17a939aa56ba22fbe6851fa60946ac04ed (patch)
tree64454b68fd8eff772bf01b84e8d524e118c31e83
parentb6609ee5f4e6bffc467da4f3f9623f22e9e07095 (diff)
downloadpuppet-1729de17a939aa56ba22fbe6851fa60946ac04ed.tar.gz
puppet-1729de17a939aa56ba22fbe6851fa60946ac04ed.tar.xz
puppet-1729de17a939aa56ba22fbe6851fa60946ac04ed.zip
Updates to ext/puppetlast to support multiple hosts
-rwxr-xr-xext/puppetlast2
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