[checkmk-commits] Check_MK Git: check_mk: webapi: streamlined returned object of get_host

Andreas Boesl ab at mathias-kettner.de
Mon Aug 18 13:48:58 CEST 2014


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

Author: Andreas Boesl <ab at mathias-kettner.de>
Date:   Mon Aug 18 13:48:51 2014 +0200

webapi: streamlined returned object of get_host

---

 web/htdocs/wato.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 8bc7673..1042f73 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -17039,9 +17039,8 @@ class API:
             the_host = effective_attributes(the_host, the_host[".folder"])
 
         cleaned_host = dict([(k, v) for (k, v) in the_host.iteritems() if not k.startswith('.') ])
-        cleaned_host["folder"] = the_host[".folder"][".path"]
 
-        return cleaned_host
+        return { "attributes": cleaned_host, "path": the_host[".folder"][".path"], "hostname": hostname }
 
     def delete_host(self, hostname):
         self.__prepare_folder_info()



More information about the checkmk-commits mailing list