aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2024-01-01 13:18:00 -0800
committerDan Fandrich <dan@coneharvesters.com>2024-01-01 13:21:10 -0800
commit27f3c272430470233a38201b21828bfda6ae76d7 (patch)
tree980df29e20bfce58369e7771d9347187ae5da064 /modules
parent45107263ba400154ba3b78d563e63780b5e7bfc3 (diff)
downloadpuppet-27f3c272430470233a38201b21828bfda6ae76d7.tar
puppet-27f3c272430470233a38201b21828bfda6ae76d7.tar.gz
puppet-27f3c272430470233a38201b21828bfda6ae76d7.tar.bz2
puppet-27f3c272430470233a38201b21828bfda6ae76d7.tar.xz
puppet-27f3c272430470233a38201b21828bfda6ae76d7.zip
Another nil ref_times check in check_mirrors_status
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 82a2f085..e6255405 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -121,7 +121,7 @@ def get_date(url, distrib, arch)
end
def format_age(ref_time, time)
- return " <td class='broken'>X</td>" unless time
+ return " <td class='broken'>X</td>" unless ref_time and time
diff = ref_time - time
cls = 'broken'