aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2023-12-28 23:19:36 -0800
committerDan Fandrich <dan@coneharvesters.com>2023-12-28 23:20:05 -0800
commite202716d363f7998090d0fb1c375d4e6c6054075 (patch)
treebeafa31846467f5e0816185f60e8924aeb01feba /modules
parent0f05217995af8b655cc7e9e150900cd4e7fc0458 (diff)
downloadpuppet-e202716d363f7998090d0fb1c375d4e6c6054075.tar
puppet-e202716d363f7998090d0fb1c375d4e6c6054075.tar.gz
puppet-e202716d363f7998090d0fb1c375d4e6c6054075.tar.bz2
puppet-e202716d363f7998090d0fb1c375d4e6c6054075.tar.xz
puppet-e202716d363f7998090d0fb1c375d4e6c6054075.zip
Better handle nil ref_times in check_mirrors_status
This happens every once in a while and results in a cron job failure e-mail.
Diffstat (limited to 'modules')
-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 884857f3..82a2f085 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -176,7 +176,7 @@ th {background-color:#EEEEEE;}
puts "<tbody>"
puts "<tr><td class='name'>Reference</td>"
puts " <td class='sep' />"
- puts " <td>#{ref_times['base'].strftime("%F %R")}</td>"
+ puts " <td>#{!ref_times['base'].nil? ? ref_times['base'].strftime("%F %R") : "?"}</td>"
archs_per_distro.each{|d, archs|
puts " <td class='sep' />"
archs.each{|a|