diff options
author | Mark Plaksin <happy@usg.edu> | 2010-01-22 15:20:58 -0500 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-02-08 23:44:15 +1100 |
commit | ad4f94adc4393e0ee3b1aca4bf7a1e8afc8b3ad8 (patch) | |
tree | 0915d5358a62e5da1bf19215286f899c04bc629c | |
parent | 0533cea09d6b741fba392def06a064d9819a6a1e (diff) | |
download | puppet-ad4f94adc4393e0ee3b1aca4bf7a1e8afc8b3ad8.tar.gz puppet-ad4f94adc4393e0ee3b1aca4bf7a1e8afc8b3ad8.tar.xz puppet-ad4f94adc4393e0ee3b1aca4bf7a1e8afc8b3ad8.zip |
Add version number to puppetlast display.
Move "cache expired" to the end of puppetlast lines.
This way the number of seconds and puppet version are always in the same column.
-rwxr-xr-x | ext/puppetlast | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/puppetlast b/ext/puppetlast index 2dc4cd645..ac6396560 100755 --- a/ext/puppetlast +++ b/ext/puppetlast @@ -12,5 +12,5 @@ Puppet[:name] = "puppetmasterd" Puppet::Node::Facts.terminus_class = :yaml 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 - Time.parse(node.values[:_timestamp].to_s)) / 60).floor} minutes ago" + puts "#{node.name} checked in #{((Time.now - Time.parse(node.values[:_timestamp].to_s)) / 60).floor} minutes ago. Version #{node.values['puppetversion']}#{node.expired? ? ' Cached expired.' : ''}" end |