Module: check_mk
Branch: master
Commit: 0eeb2a5d492f6b05f268fc3be49a5c9b3a59d145
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0eeb2a5d492f6b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 20 10:10:25 2017 +0100
Minor cleanup
Change-Id: I4b7db677db7cd386c17b32739e2863da879355d8
---
web/htdocs/views.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 4cd56fd..093355d 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1884,8 +1884,9 @@ def render_view(view, rows, datasource, group_painters, painters,
if config.show_livestatus_errors \
and display_options.enabled(display_options.W) \
and (html.output_format == "html" or not config.is_multisite()):
- for sitename, info in sites.live().deadsites.items():
- html.show_error("<b>%s - %s</b><br>%s" %
(info["site"]["alias"], _('Livestatus error'),
info["exception"]))
+ for sitename, info in sites.live().dead_sites().items():
+ html.show_error("<b>%s - %s</b><br>%s" %
+ (info["site"]["alias"], _('Livestatus
error'), info["exception"]))
# FIXME: Sauberer waere noch die Status Icons hier mit aufzunehmen
if display_options.enabled(display_options.R):