Module: check_mk
Branch: master
Commit: 74910dd126e4c73b60d1aaeea6f436d905e0b954
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=74910dd126e4c7…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Jun 2 09:51:02 2017 +0200
Web-API call get_host: effective_attributes did no longer support "True" value
Change-Id: I0e3874a3fe735e31bea01c7b8aaa03ab654d60f9
---
web/plugins/webapi/webapi.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/webapi/webapi.py b/web/plugins/webapi/webapi.py
index 717d34d..45a6de2 100644
--- a/web/plugins/webapi/webapi.py
+++ b/web/plugins/webapi/webapi.py
@@ -400,7 +400,7 @@ class APICallHosts(APICallCollection):
host = Host.host(hostname)
host.need_permission("read")
- if request.get("effective_attributes") == "1":
+ if bool(int(request.get("effective_attributes", "0"))):
attributes = host.effective_attributes()
else:
attributes = host.attributes()