diff options
author | Pascal Terjan <pterjan@mageia.org> | 2020-07-04 09:43:07 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2020-07-04 09:43:07 +0000 |
commit | 255bf3fce8a3f1affcd4b2a1500b1455d4fdcbdc (patch) | |
tree | 97442a517b8545114747df9f15bcfeb0ce952559 /modules/mga-mirrors/files | |
parent | e095df853caaa21366d0f209bcdd688e356d95b7 (diff) | |
download | puppet-255bf3fce8a3f1affcd4b2a1500b1455d4fdcbdc.tar puppet-255bf3fce8a3f1affcd4b2a1500b1455d4fdcbdc.tar.gz puppet-255bf3fce8a3f1affcd4b2a1500b1455d4fdcbdc.tar.bz2 puppet-255bf3fce8a3f1affcd4b2a1500b1455d4fdcbdc.tar.xz puppet-255bf3fce8a3f1affcd4b2a1500b1455d4fdcbdc.zip |
Add one more connection error type
One of the mirrors started triggering Errno::ECONNRESET
Diffstat (limited to 'modules/mga-mirrors/files')
-rwxr-xr-x | modules/mga-mirrors/files/check_mirrors_status | 4 |
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 80d0f8b7..5361dfad 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, IOError => e + rescue Net::OpenTimeout, Timeout::Error, ArgumentError, NoMethodError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, IOError => 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, IOError => e + rescue Net::OpenTimeout, Timeout::Error, ArgumentError, NoMethodError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, IOError => e if !optional then STDERR.puts "Failed to fetch #{version_url(base, d, a)}" raise |