Project

General

Profile

Bug #324 ยป 0001-Don-t-try-to-read-CA-signed-certs-as-foreman-user-be.patch

Frank Sweetser, 06/14/2010 08:42 PM

View differences:

vendor/plugins/proxy/lib/proxy.rb
return false
end
begin
if (ssldir + "ca/signed/#{fqdn}.pem").file?
command = "/usr/bin/sudo -S #{@sbin}/puppetca --clean #{fqdn}< /dev/null"
logger.info system(command)
return true
else
logger.warn ssldir + "PuppetCA: ca/signed/#{fqdn}.pem does not exists - skipping"
return true
end
command = "/usr/bin/sudo -S #{@sbin}/puppetca --clean #{fqdn}< /dev/null"
logger.info system(command)
return true
rescue StandardError => e
logger.info "PuppetCA: clean failed: #{e}"
false
    (1-1/1)