Module: check_mk
Branch: master
Commit: 14e32860bc378b16d6724d9e1da5b7717f14c126
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=14e32860bc378b…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jan 18 11:21:14 2016 +0100
#2826 FIX Disabled BI Aggregations no longer causing crashes when using "Precompile
aggregations on demand"
This fixes the error <i>AttributeError: class DISABLED has no attribute
'lower'</i>, which is shown in
the BI sidebar snapin or written to the file <i>~/var/log/web.log</i>.
Because of this bug most of the aggregation views were empty.
---
.werks/2826 | 12 ++++++++++++
ChangeLog | 1 +
web/htdocs/bi.py | 2 ++
3 files changed, 15 insertions(+)
diff --git a/.werks/2826 b/.werks/2826
new file mode 100644
index 0000000..22d1bee
--- /dev/null
+++ b/.werks/2826
@@ -0,0 +1,12 @@
+Title: Disabled BI Aggregations no longer causing crashes when using "Precompile
aggregations on demand"
+Level: 2
+Component: bi
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i4
+Date: 1453112096
+
+This fixes the error <i>AttributeError: class DISABLED has no attribute
'lower'</i>, which is shown in
+the BI sidebar snapin or written to the file <i>~/var/log/web.log</i>.
+Because of this bug most of the aggregation views were empty.
diff --git a/ChangeLog b/ChangeLog
index 73be677..f0e7912 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -258,6 +258,7 @@
BI:
* 2882 Reorganize BI configuration into packs, add contacts and permissions...
+ * 2826 FIX: Disabled BI Aggregations no longer causing crashes when using
"Precompile aggregations on demand"...
Reporting & Availability:
* 2823 FIX: Availability: Fixed division by zero error on rendering the availability
table
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 2d6f37e..0ab83f8 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -179,6 +179,8 @@ def aggregation_groups():
# on demand: show all configured groups
group_names = set([])
for a in config.aggregations + config.host_aggregations:
+ if a[0] == config.DISABLED:
+ continue
if type(a[0]) == list:
group_names.update(a[0])
else: