Module: check_mk
Branch: master
Commit: 9579afcce723750906736a25b98b5818654568d2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9579afcce72375…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 23 10:27:18 2014 +0200
BI availability: fix exception on timewarp to non-existing time
---
web/plugins/views/availability.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index 817522b..601d313 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -1367,7 +1367,7 @@ def render_bi_availability(title, aggr_rows):
timewarp = None
these_rows, tree_state = get_bi_timeline(tree,
aggr_row["aggr_group"], avoptions, timewarp)
rows += these_rows
- if timewarp:
+ if timewarp and tree_state:
state, assumed_state, node, subtrees = tree_state
eff_state = state
if assumed_state != None: