diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2024-01-01 13:18:00 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2024-01-01 13:21:10 -0800 |
commit | 27f3c272430470233a38201b21828bfda6ae76d7 (patch) | |
tree | 980df29e20bfce58369e7771d9347187ae5da064 /modules | |
parent | 45107263ba400154ba3b78d563e63780b5e7bfc3 (diff) | |
download | puppet-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-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 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' |