Hallo Bastian,
ich bin mit dem Commit nicht ganz glücklich. Der Fehler scheint
eigentlich woanders zu liegen. Jemand hat hier eine Zahl übergeben
statt einen String. Dann muss man den Fehler dort beheben. Für Zahlen
braucht man ja auch kein Quoting.
Weißt du noch den eigentlichen Fehler? Ich würde den Commit
gerne wieder zurückrollen, aber dabei geht dann das eigentliche
kaputt...
Grüße,
Mathias
Am 05.12.2014 um 21:36 schrieb Bastian Kuhn:
Module: check_mk
Branch: master
Commit: 7b11f132446f548f5a176d9454319e2a6034bdff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7b11f132446f54…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Dec 5 14:09:44 2014 +0100
Fixed type error in check_mk_base
---
modules/check_mk_base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 95bcd6a..a167e06 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1857,7 +1857,7 @@ def get_age_human_readable(secs):
# Quote string for use as arguments on the shell
def quote_shell_string(s):
- return "'" + s.replace("'",
"'\"'\"'") + "'"
+ return "'" + str(s).replace("'",
"'\"'\"'") + "'"
# Check if a timeperiod is currently active. We have no other way than
_______________________________________________
checkmk-commits mailing list
checkmk-commits(a)lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-commits
--
Die Videomitschnitte der 1. Check_MK Konferenz sind jetzt online!
http://mathias-kettner.de/check_mk_konferenz2014_videos.html
Mathias Kettner GmbH
Kellerstraße 29, 81667 München, Germany
Registergericht: Amtsgericht München, HRB 165902
Geschäftsführer: Mathias Kettner
http://mathias-kettner.de
Tel. +49 89 1890 435-0
Fax. +49 89 1890 435-29