Module: check_mk
Branch: master
Commit: c25a8a6b4b4eb850259ae98b88cc57084872b228
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c25a8a6b4b4eb8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 7 11:16:37 2012 +0200
Fixed declaration of BI aggregations since weekends changes
---
web/htdocs/config.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/config.py b/web/htdocs/config.py
index 462c20f..89b9de4 100644
--- a/web/htdocs/config.py
+++ b/web/htdocs/config.py
@@ -78,6 +78,12 @@ class FOREACH_HOST: pass
class FOREACH_SERVICE: pass
class REMAINING: pass
+# Has to be declared here once since the functions can be assigned in
+# bi.py and also in multisite.mk. "Double" declarations are no problem
+# here since this is a dict (List objects have problems with duplicate
+# definitions).
+aggregation_functions = {}
+
# .----------------------------------------------------------------------.
# | _____ _ _ |
@@ -533,7 +539,6 @@ def load_default_values(into):
#
into["aggregation_rules"] = {}
into["aggregations"] = []
- into["aggregation_functions"] = {}
# __ ___ _____ ___
# \ \ / / \|_ _/ _ \