[checkmk-commits] Check_MK Git: check_mk: webapi: renamed result_text to result

Andreas Boesl ab at mathias-kettner.de
Wed Aug 13 15:24:33 CEST 2014


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

Author: Andreas Boesl <ab at mathias-kettner.de>
Date:   Wed Aug 13 15:24:29 2014 +0200

webapi: renamed result_text to result

---

 web/htdocs/webapi.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/htdocs/webapi.py b/web/htdocs/webapi.py
index e827dc7..dcf94c8 100644
--- a/web/htdocs/webapi.py
+++ b/web/htdocs/webapi.py
@@ -137,11 +137,11 @@ def page_api():
                 request_object = example_request[1]
 
         action_response = api_actions[action]["handler"](request_object)
-        response = { "result_code": 0, "result_text": action_response }
+        response = { "result_code": 0, "result": action_response }
     except Exception, e:
         #import traceback
         #html.debug(traceback.format_exc().replace("\n","<br>"))
-        response = { "result_code": 1, "result_text": str(e) }
+        response = { "result_code": 1, "result": str(e) }
 
     output_format = html.var("output_format", "json")
     if output_format == "json":



More information about the checkmk-commits mailing list