Module: check_mk
Branch: master
Commit: 3af2a052507894a864aae410061280b655c5a95c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3af2a052507894…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 17 07:51:14 2018 +0200
6351 FIX Fixed creating BI aggregations
In previous 1.5 releases it was not possible to create BI aggregations using
the WATO configuration.
Change-Id: I7a7ebc4c458a63d0f09791bba241d3f856cb776a
---
.werks/6351 | 12 ++++++++++++
cmk/gui/plugins/wato/bi.py | 5 ++++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/6351 b/.werks/6351
new file mode 100644
index 0000000..3fd9196
--- /dev/null
+++ b/.werks/6351
@@ -0,0 +1,12 @@
+Title: Fixed creating BI aggregations
+Level: 1
+Component: bi
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1531806596
+
+In previous 1.5 releases it was not possible to create BI aggregations using
+the WATO configuration.
diff --git a/cmk/gui/plugins/wato/bi.py b/cmk/gui/plugins/wato/bi.py
index 865b488..69d8b47 100644
--- a/cmk/gui/plugins/wato/bi.py
+++ b/cmk/gui/plugins/wato/bi.py
@@ -599,7 +599,10 @@ class ModeBI(WatoMode, BIManagement):
def _transform_forth_vs_call_rule(self, choice):
pack = self.pack_containing_rule(choice)
- return (pack['id'], choice)
+ if pack:
+ return (pack['id'], choice)
+ else:
+ return None
def _get_vs_host_re(self):