Module: check_mk
Branch: master
Commit: c7632096b20c53cd6dc45c2a51328f1b1788380d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c7632096b20c53…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 1 10:57:00 2016 +0100
unit_info: make sure that description is always present
---
web/htdocs/metrics.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index 7ed4f70..95a43af 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -67,9 +67,14 @@ def load_plugins(force):
load_web_plugins("metrics", globals())
loaded_with_language = current_language
+ fixup_unit_into()
+
+
+def fixup_unit_into():
# create back link from each unit to its id.
for unit_id, unit in unit_info.items():
unit["id"] = unit_id
+ unit.setdefault("description", unit["title"])
#.