diff options
| author | Luke Kanies <luke@madstop.com> | 2008-08-20 23:45:02 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-08-20 23:45:02 -0500 |
| commit | 66c40b374d7315d11575d701ce195ce656abbeb7 (patch) | |
| tree | 4caafcffd669693fbd601d5b1bd2fd586387fc1e /ext/puppetlast | |
| parent | c8190421a351ed327361a5daca82441be39ce834 (diff) | |
| parent | c5fb092720afefbf904822a5604b5b3520b5c194 (diff) | |
| download | puppet-66c40b374d7315d11575d701ce195ce656abbeb7.tar.gz puppet-66c40b374d7315d11575d701ce195ce656abbeb7.tar.xz puppet-66c40b374d7315d11575d701ce195ce656abbeb7.zip | |
Merge branch '0.24.x'
Diffstat (limited to 'ext/puppetlast')
| -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 |
