aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors/files/check_mirrors_status
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-06-28 19:38:07 +0000
committerPascal Terjan <pterjan@mageia.org>2020-06-28 19:38:07 +0000
commitb25a543dfd218cc5725d82fec4dbd9af1f50564b (patch)
treef9c97d03921654fe7dfdb6c916af1342fbb0a7e2 /modules/mga-mirrors/files/check_mirrors_status
parent320730b5faaa25fd9c8f644731512b4d4e9b9161 (diff)
downloadpuppet-b25a543dfd218cc5725d82fec4dbd9af1f50564b.tar
puppet-b25a543dfd218cc5725d82fec4dbd9af1f50564b.tar.gz
puppet-b25a543dfd218cc5725d82fec4dbd9af1f50564b.tar.bz2
puppet-b25a543dfd218cc5725d82fec4dbd9af1f50564b.tar.xz
puppet-b25a543dfd218cc5725d82fec4dbd9af1f50564b.zip
Fix error when failing to connect
Diffstat (limited to 'modules/mga-mirrors/files/check_mirrors_status')
-rwxr-xr-xmodules/mga-mirrors/files/check_mirrors_status2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status
index eae56627..867ff3ec 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -15,7 +15,7 @@ def get_dates(base, archs_per_distro, optional=true)
r[d][a] = get_date(base, d, a)
rescue Net::OpenTimeout, Timeout::Error, ArgumentError, NoMethodError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, IOError => e
if !optional then
- STDERR.puts "Failed to fetch #{version_url(url, distrib, arch)}"
+ STDERR.puts "Failed to fetch #{version_url(base, d, a)}"
raise
end
end