Module: check_mk
Branch: master
Commit: 4ed634d3e5a98fc187e222db7d180a6bb8b556f3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ed634d3e5a98f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 2 10:39:28 2015 +0200
Fixed exception on BI availability page when no aggregations are defined
---
web/plugins/views/availability.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index 79ff03d..b643119 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -487,7 +487,7 @@ def render_bi_availability(title, aggr_rows):
avoptions = render_availability_options("bi")
-
+ timewarpcode = ""
if not html.has_user_errors():
spans = []
for aggr_row in aggr_rows:
@@ -544,8 +544,6 @@ def render_bi_availability(title, aggr_rows):
'<table class="data table
timewarp"><tr class="data odd0"><td
class="%s">' % tdclass + \
htmlcode + \
'</td></tr></table>'
- else:
- timewarpcode = ""
av_rawdata = availability.spans_by_object(spans)
av_data = availability.compute_availability("bi", av_rawdata,
avoptions)