[checkmk-commits] Check_MK Git: check_mk: #2078 FIX Fixed exception with some snapshots when using a localized GUI

Lars Michelsen lm at mathias-kettner.de
Fri Feb 27 10:51:45 CET 2015


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

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Fri Feb 27 10:51:38 2015 +0100

#2078 FIX Fixed exception with some snapshots when using a localized GUI

When opening the backup / restore page while using a localized GUI,
this could result in an exception while displaying snapshot error
messages.

---

 .werks/2078        |   12 ++++++++++++
 ChangeLog          |    1 +
 web/htdocs/wato.py |    2 +-
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.werks/2078 b/.werks/2078
new file mode 100644
index 0000000..66ef677
--- /dev/null
+++ b/.werks/2078
@@ -0,0 +1,12 @@
+Title: Fixed exception with some snapshots when using a localized GUI
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1425030623
+
+When opening the backup / restore page while using a localized GUI,
+this could result in an exception while displaying snapshot error
+messages.
diff --git a/ChangeLog b/ChangeLog
index ce063b6..3b11f6d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -293,6 +293,7 @@
     * 1223 FIX: Fixed manual configuration of ntp peer check...
     * 2025 FIX: Fixed exception when synchronising custom ldap attributes in distributed WATO setup
     * 2026 FIX: Fixed exception when using umlauts in notification plugin descriptions...
+    * 2078 FIX: Fixed exception with some snapshots when using a localized GUI...
 
     Notifications:
     * 1662 notification plugin spectrum: finalized script. now able to handle host notications
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index a7e35e7..e350dac 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6615,7 +6615,7 @@ def get_snapshot_status(snapshot, validate_checksums = False):
             status["broken_text"] = traceback.format_exc()
             status["broken"]      = True
         else:
-            status["broken_text"] = str(e)
+            status["broken_text"] = '%s' % e
             status["broken"]      = True
     return status
 



More information about the checkmk-commits mailing list