From 7aeb0cca7c1b149e390bcdc62f7fa77a7bf35d62 Mon Sep 17 00:00:00 2001 From: Frank Sweetser Date: Mon, 14 Jun 2010 15:37:50 -0400 Subject: [PATCH] Don't try to read CA signed certs as foreman user before cleaning with puppetrun --- vendor/plugins/proxy/lib/proxy.rb | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/vendor/plugins/proxy/lib/proxy.rb b/vendor/plugins/proxy/lib/proxy.rb index a787ff9..8663889 100644 --- a/vendor/plugins/proxy/lib/proxy.rb +++ b/vendor/plugins/proxy/lib/proxy.rb @@ -97,14 +97,9 @@ module GW 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.6.6.1