fix bug in get_hosts if host[x:y] is not a list
This commit is contained in:
parent
76d3c2567e
commit
a29904fefd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue