Module: check_mk
Branch: master
Commit: 0e6bfc21e705d1199c965b1e98410b7a8df5e0a7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0e6bfc21e705d1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 6 18:57:48 2014 +0200
Show dashlet titles by default when transforming old dashboards
---
web/htdocs/dashboard.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index cc13b0d..c20cc4c 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -109,6 +109,8 @@ def transform_builtin_dashboards():
# Transform the dashlets
for nr, dashlet in enumerate(dashboard['dashlets']):
+ dashlet.setdefault('show_title', True)
+
if dashlet.get('url', '').startswith('dashlet_') and
dashlet['url'].endswith('.py'):
# hoststats and servicestats
dashlet['type'] = dashlet['url'][8:-3]