Opened 14 years ago
Last modified 9 years ago
#2090 new bug
json api get_hosts returns status Offline for all hosts
| Reported by: | Calum | Owned by: | Damien Churchill |
|---|---|---|---|
| Priority: | trivial | Milestone: | 2.x |
| Component: | Web UI | Version: | 1.3.5 |
| Keywords: | Cc: |
Description
When using just the method get_hosts all hosts are listed as offline.
There is a hard-coded 'Offline' string in line 776 of get_hosts which I wonder is intentional to show a default status before calling get_host_status.
return [(tuple(host[HOSTS_ID:HOSTS_PORT+1]) + (_("Offline"),)) for host in self.host_list["hosts"]]
Change History (3)
comment:1 by , 13 years ago
| Milestone: | 1.3.6 → 1.3.x |
|---|
comment:2 by , 13 years ago
| Milestone: | 1.3.x → 1.4.0 |
|---|
Note:
See TracTickets
for help on using tickets.



I think changing it to 'Unknown' would be more informative.
Also I don't think that any of the status texts in api should be translated as this might cause issues when passing non-ascii characters.