Module: check_mk
Branch: master
Commit: 67695ab6bb8194f731d0de88f04722352c2a97e6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=67695ab6bb8194…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jan 16 13:40:00 2017 +0100
Fix 4202: PEND for host states resulted in crash
Change-Id: I6ae9de5184a33d76af340912d3cce37fb5b30bc7
---
web/htdocs/bi.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 16f193c..df6fa64 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -2422,7 +2422,7 @@ def execute_leaf_node(node, status_info, aggregation_options):
st = host_hard_state
else:
st = host_state
- aggr_state = {0:OK, 1:CRIT, 2:UNKNOWN, -1:PENDING}[st]
+ aggr_state = {0:OK, 1:CRIT, 2:UNKNOWN, -1:PENDING, None: None}[st]
state = {
"state" : aggr_state,
"output" : host_output,