summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2009-12-28 17:17:57 +0100
committerJames Turnbull <james@lovedthanlost.net>2010-01-18 23:17:21 +1100
commita967b93a51ce509cf8631d78b8be8d4ab6da5657 (patch)
treec4999010dcad2217ff20ca43376854962b1988c5 /lib
parentb6f90dfcd96123c245b6f5fd93753790006387c0 (diff)
downloadpuppet-a967b93a51ce509cf8631d78b8be8d4ab6da5657.tar.gz
puppet-a967b93a51ce509cf8631d78b8be8d4ab6da5657.tar.xz
puppet-a967b93a51ce509cf8631d78b8be8d4ab6da5657.zip
Feature #2395 - revoke when cleaning a certificate with puppetca
As the ticket says: "the certificates would still be valid even if cleaned, therefore, it makes more sense revoke them instead." Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/application/puppetca.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/application/puppetca.rb b/lib/puppet/application/puppetca.rb
index 68ea3e5fb..adc1a6ff5 100644
--- a/lib/puppet/application/puppetca.rb
+++ b/lib/puppet/application/puppetca.rb
@@ -43,6 +43,7 @@ Puppet::Application.new(:puppetca) do
hosts = ARGV.collect { |h| puts h; h.downcase }
end
begin
+ @ca.apply(:revoke, :to => hosts) if @mode == :destroy
@ca.apply(@mode, :to => hosts)
rescue => detail
puts detail.backtrace if Puppet[:trace]