service group in availability
Message-ID: <54903009.+HUNh7sdD77Ogpg3%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: ffd9d376e30d351697aaefe06a0cf07b496b717a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ffd9d376e30d35…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Dec 16 14:13:36 2014 +0100
#1781 FIX Fix broken grouping by host/service group in availability
---
.werks/1781 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/views/availability.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/1781 b/.werks/1781
new file mode 100644
index 0000000..d06d0a0
--- /dev/null
+++ b/.werks/1781
@@ -0,0 +1,10 @@
+Title: Fix broken grouping by host/service group in availability
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1418735585
+
+
diff --git a/ChangeLog b/ChangeLog
index b56eca8..d2611af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,7 @@
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
+ * 1781 FIX: Fix broken grouping by host/service group in availability
WATO:
* 1760 Added search form to manual checks page
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index ffdbe04..506ed51 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -1199,7 +1199,7 @@ def render_availability_table(availability, from_time, until_time,
range_title,
# 2. Compute Names for the groups and sort according to these names
if grouping != "host":
- group_titles = dict(all_groups(grouping[:-7]))
+ group_titles = dict(visuals.all_groups(grouping[:-7]))
titled_groups = []
for group_id in all_group_ids: