fix bug in get_hosts if host[x:y] is not a list

This commit is contained in:
Damien Churchill 2009-06-23 10:02:22 +00:00
parent 76d3c2567e
commit a29904fefd
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ class WebApi(JSONComponent):
""" """
log.debug("get_hosts called") log.debug("get_hosts called")
d = Deferred() d = Deferred()
d.callback([(host[HOSTS_ID:HOSTS_PORT+1] + [_("Offline"),]) for host in self.host_list["hosts"]]) d.callback([(tuple(host[HOSTS_ID:HOSTS_PORT+1]) + (_("Offline"),)) for host in self.host_list["hosts"]])
return d return d
@export @export