The branch, master has been updated
via ff66f06 Cope with unknown hosts in dead host list.
from ddaff71 Support displaying dead host age.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit ff66f06846042e770e5ab46ab15beb8e0a251eb4
Author: Jelmer Vernooij <[email protected]>
Date: Fri Nov 19 19:10:21 2010 +0100
Cope with unknown hosts in dead host list.
-----------------------------------------------------------------------
Summary of changes:
buildfarm/web/__init__.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/buildfarm/web/__init__.py b/buildfarm/web/__init__.py
index b7d62ab..99f5654 100755
--- a/buildfarm/web/__init__.py
+++ b/buildfarm/web/__init__.py
@@ -736,9 +736,12 @@ class ViewHostPage(BuildFarmPage):
for host in deadhosts:
last_build = self.buildfarm.host_last_build(host)
age = time.time() - last_build
+ try:
+ platform =
self.buildfarm.hostdb.host(host).platform.encode("utf-8")
+ except hostdb.NoSuchHost:
+ platform = "UNKNOWN"
yield "<tr><td>%s</td><td>%s</td><td>%s</td></tr>" %\
- (host,
self.buildfarm.hostdb.host(host).platform.encode("utf-8"),
- util.dhm_time(age))
+ (host, platform, util.dhm_time(age))
yield "</tbody></table>"
yield "</div>"
--
build.samba.org