[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Richard Crowley r at rcrowley.org
Tue May 10 08:08:00 UTC 2011


The following commit has been merged in the experimental branch:
commit 635751d809af309c7c36c0c9d7a94a731ef8bd1c
Author: Richard Crowley <r at rcrowley.org>
Date:   Wed Mar 23 22:41:21 2011 +0000

    Propagating an argument to search out of core.
    
    Puppet::SSL::Host.search (which will proxy to the new indirection) accepts an array of classes (now also class names) to limit the search.  Currently, `puppet certificate list` limits itself to certificate requests to mimic the behavior of `puppet cert -l`.

diff --git a/lib/puppet/interface/certificate.rb b/lib/puppet/interface/certificate.rb
index 5c06cdc..86ac6d6 100644
--- a/lib/puppet/interface/certificate.rb
+++ b/lib/puppet/interface/certificate.rb
@@ -13,10 +13,9 @@ Puppet::Interface::Indirector.interface(:certificate) do
 
   action :list do
     invoke do
-      Puppet::SSL::Host.indirection.search("*").each do |host|
-        puts host.inspect
-      end
-      nil
+      Puppet::SSL::Host.indirection.search("*", {
+        :for => :certificate_request,
+      }).map { |h| h.inspect }
     end
   end
 

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list