[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:20:49 UTC 2009


The following commit has been merged in the master branch:
commit 1729de17a939aa56ba22fbe6851fa60946ac04ed
Author: James Turnbull <james at lovedthanlost.net>
Date:   Wed Aug 20 22:56:41 2008 +1000

    Updates to ext/puppetlast to support multiple hosts

diff --git a/ext/puppetlast b/ext/puppetlast
index d9b698c..e52529d 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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list