aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2021-03-02 12:57:13 +0000
committerPascal Terjan <pterjan@mageia.org>2021-03-02 12:57:13 +0000
commit0d288482b8d7d88044eabefb88bc5b35c420da11 (patch)
treee0f07818c487934e35ab743951629f74489baba3
parentc14d1aab6497cf1c504afcd8577c8b0ad10776c5 (diff)
downloadpuppet-0d288482b8d7d88044eabefb88bc5b35c420da11.tar
puppet-0d288482b8d7d88044eabefb88bc5b35c420da11.tar.gz
puppet-0d288482b8d7d88044eabefb88bc5b35c420da11.tar.bz2
puppet-0d288482b8d7d88044eabefb88bc5b35c420da11.tar.xz
puppet-0d288482b8d7d88044eabefb88bc5b35c420da11.zip
Recover when mirrors have expired certificates
-rwxr-xr-xmodules/mga-mirrors/files/check_mirrors_status4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status
index 033d1642..b79d059b 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -10,7 +10,7 @@ def get_dates(base, archs_per_distro, optional=true)
r = {}
begin
r['base'] = get_timestamp(base)
- rescue Net::OpenTimeout, Timeout::Error, ArgumentError, NoMethodError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, IOError => e
+ rescue Net::OpenTimeout, Timeout::Error, ArgumentError, NoMethodError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, IOError, OpenSSL::SSL::SSLError => e
end
archs_per_distro.each{|d, archs|
@@ -18,7 +18,7 @@ def get_dates(base, archs_per_distro, optional=true)
archs.each{|a|
begin
r[d][a] = get_date(base, d, a)
- rescue Net::OpenTimeout, Timeout::Error, ArgumentError, NoMethodError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, IOError => e
+ rescue Net::OpenTimeout, Timeout::Error, ArgumentError, NoMethodError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, IOError, OpenSSL::SSL::SSLError => e
if !optional then
STDERR.puts "Failed to fetch #{version_url(base, d, a)}"
raise