diff options
author | Nigel Kersten <nigel@explanatorygap.net> | 2008-07-24 19:40:50 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-07-29 07:40:07 +1000 |
commit | fe99828511afbf701aa03f8dbf6d725020539602 (patch) | |
tree | 3682d1a81d464016a4c33e2176d7bfc209a61f38 | |
parent | 971af69b7388cf5155bb124246f2a697578cc6e9 (diff) | |
download | puppet-fe99828511afbf701aa03f8dbf6d725020539602.tar.gz puppet-fe99828511afbf701aa03f8dbf6d725020539602.tar.xz puppet-fe99828511afbf701aa03f8dbf6d725020539602.zip |
Bug #1448: Puppet CA incorrectly writes out all certs to inventory .txt on each certificate signing
-rw-r--r-- | lib/puppet/sslcertificates/inventory.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/puppet/sslcertificates/inventory.rb b/lib/puppet/sslcertificates/inventory.rb index da959aa3b..295c416cb 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| |