summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-01-21 15:26:09 -0800
committerJames Turnbull <james@lovedthanlost.net>2010-01-22 10:46:47 +1100
commit1a263e27dede28d3844a4f010ab6ce42ef2977b0 (patch)
tree01699acc289b78840e05a0a602a807cfa658c68d /ext
parent75634b72629c4ed308444d64341dc909d1ab497e (diff)
downloadpuppet-1a263e27dede28d3844a4f010ab6ce42ef2977b0.tar.gz
puppet-1a263e27dede28d3844a4f010ab6ce42ef2977b0.tar.xz
puppet-1a263e27dede28d3844a4f010ab6ce42ef2977b0.zip
Fix for #3089 (timestamp may now be a time object, not a string)
Diffstat (limited to 'ext')
-rwxr-xr-xext/puppetlast2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/puppetlast b/ext/puppetlast
index e9496760a..2dc4cd645 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])) / 60).floor} minutes ago"
+ puts "#{node.name} #{node.expired? ? 'cached expired, ' : ''}checked in #{((Time.now - Time.parse(node.values[:_timestamp].to_s)) / 60).floor} minutes ago"
end