[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1613-ga91c476
James Turnbull
james at lovedthanlost.net
Mon Jan 25 05:48:55 UTC 2010
The following commit has been merged in the upstream branch:
commit 1a263e27dede28d3844a4f010ab6ce42ef2977b0
Author: Markus Roberts <Markus at reality.com>
Date: Thu Jan 21 15:26:09 2010 -0800
Fix for #3089 (timestamp may now be a time object, not a string)
diff --git a/ext/puppetlast b/ext/puppetlast
index e949676..2dc4cd6 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
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list