diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2023-12-28 23:19:36 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2023-12-28 23:20:05 -0800 |
commit | e202716d363f7998090d0fb1c375d4e6c6054075 (patch) | |
tree | beafa31846467f5e0816185f60e8924aeb01feba | |
parent | 0f05217995af8b655cc7e9e150900cd4e7fc0458 (diff) | |
download | puppet-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.
-rwxr-xr-x | modules/mga-mirrors/files/check_mirrors_status | 2 |
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| |