[checkmk-commits] Check_MK Git: check_mk: webapi get_host: also report the hosts folder

Andreas Boesl ab at mathias-kettner.de
Fri Aug 15 16:19:08 CEST 2014


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

Author: Andreas Boesl <ab at mathias-kettner.de>
Date:   Fri Aug 15 16:19:04 2014 +0200

webapi get_host: also report the hosts folder

---

 web/htdocs/wato.py |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index b5f1469..8bc7673 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -17039,6 +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
 
     def delete_host(self, hostname):



More information about the checkmk-commits mailing list