Module: check_mk
Branch: master
Commit: a003d4cefe67a1850537b8255c3e143bbe94e0bb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a003d4cefe67a1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 28 16:22:53 2013 +0200
Second part, fixed datatype of states handling
---
web/plugins/views/layouts.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/views/layouts.py b/web/plugins/views/layouts.py
index 2ea0551..227d5e4 100644
--- a/web/plugins/views/layouts.py
+++ b/web/plugins/views/layouts.py
@@ -200,9 +200,9 @@ def render_grouped_boxes(rows, view, group_painters, painters,
num_columns, show
else:
trclass = "odd"
# state = row.get("service_state",
row.get("aggr_state"))
- state = row.get("service_state")
+ state = saveint(row.get("service_state"))
if state == None:
- state = row.get("host_state", 0)
+ state = saveint(row.get("host_state", 0))
if state > 0: state +=1 # 1 is critical for hosts
stale = ''
if is_stale(row):