Fixed #1668 - puppetca can't clean unsigned certs
This commit is contained in:
Родитель
1ad33cc149
Коммит
c65f2b5083
|
@ -8,6 +8,8 @@
|
|||
whether stderr and stdout are combined in the output
|
||||
|
||||
Added versionable feature to the RPM provider
|
||||
|
||||
Fixed #1668 - puppetca can't clean unsigned certs
|
||||
|
||||
Moved RRD feature from util/metric.rb to feature/base.rb
|
||||
|
||||
|
|
11
bin/puppetca
11
bin/puppetca
|
@ -236,11 +236,12 @@ when :clean
|
|||
cleaned = true
|
||||
else
|
||||
hosts.each do |host|
|
||||
cert = ca.getclientcert(host)[0]
|
||||
if cert.nil?
|
||||
$stderr.puts "Could not find client certificate for %s" % host
|
||||
next
|
||||
end
|
||||
|
||||
unless cert = ca.getclientcert(host)[0] || ca.getclientcsr(host)
|
||||
$stderr.puts "Could not find client certificate or request for %s" % host
|
||||
next
|
||||
end
|
||||
|
||||
ca.clean(host)
|
||||
cleaned = true
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче