allow specifying host order
This commit is contained in:
@@ -91,6 +91,13 @@ class StatusPage:
|
||||
host_names.add(service['attrs']['host_name'])
|
||||
# render html for each host_name
|
||||
html_output = ""
|
||||
for host in self.config['output']['host_order']:
|
||||
try:
|
||||
host_names.remove(host)
|
||||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
html_output = html_output + self.render_services_per_host(host)
|
||||
for host in sorted(host_names):
|
||||
html_output = html_output + self.render_services_per_host(host)
|
||||
return html_output
|
||||
|
||||
Reference in New Issue
Block a user