[checkmk-commits] Check_MK Git: check_mk: Dashboards: Fixed transformation of old iframe based dashlets

Lars Michelsen lm at mathias-kettner.de
Mon Aug 11 13:45:28 CEST 2014


Module: check_mk
Branch: master
Commit: 336cdabc52a355fa545011cbee511952eb86c114
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=336cdabc52a355fa545011cbee511952eb86c114

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Mon Aug 11 12:57:03 2014 +0200

Dashboards: Fixed transformation of old iframe based dashlets

---

 web/htdocs/dashboard.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index c20cc4c..b0fa5f3 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -116,10 +116,14 @@ def transform_builtin_dashboards():
                 dashlet['type'] = dashlet['url'][8:-3]
                 del dashlet['url']
 
-            elif dashlet.get('url', '') != '' or dashlet.get('urlfunc'):
+            elif dashlet.get('url', '') != '' or dashlet.get('urlfunc') or dashlet.get('iframe'):
                 # Normal URL based dashlet
                 dashlet['type'] = 'url'
 
+                if dashlet.get('iframe'):
+                    dashlet['url'] = dashlet['iframe']
+                    del dashlet['iframe']
+
             elif dashlet.get('view', '') != '':
                 # Transform views
                 # There might be more than the name in the view definition



More information about the checkmk-commits mailing list