[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:43 UTC 2009


The following commit has been merged in the master branch:
commit fe99828511afbf701aa03f8dbf6d725020539602
Author: Nigel Kersten <nigel at explanatorygap.net>
Date:   Thu Jul 24 19:40:50 2008 -0700

    Bug #1448: Puppet CA incorrectly writes out all certs to inventory .txt on each certificate signing

diff --git a/lib/puppet/sslcertificates/inventory.rb b/lib/puppet/sslcertificates/inventory.rb
index da959aa..295c416 100644
--- a/lib/puppet/sslcertificates/inventory.rb
+++ b/lib/puppet/sslcertificates/inventory.rb
@@ -7,8 +7,9 @@ module Puppet::SSLCertificates
         # If no inventory exists yet, build an inventory and list all the 
         # certificates that have been signed so far
         def self.add(cert)
-            unless FileTest.exists?(Puppet[:cert_inventory])
-                inited = false
+            inited = false
+            if FileTest.exists?(Puppet[:cert_inventory])
+                inited = true
             end
 
             Puppet.settings.write(:cert_inventory, "a") do |f|

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list