Module: check_mk
Branch: master
Commit: 7227dec22c2b0d62af57abec2d92868bb32f23be
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7227dec22c2b0d…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Dec 15 15:38:24 2015 +0100
fixed invalid function call
---
web/plugins/webapi/webapi.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/web/plugins/webapi/webapi.py b/web/plugins/webapi/webapi.py
index 5722d8d..273cd0e 100644
--- a/web/plugins/webapi/webapi.py
+++ b/web/plugins/webapi/webapi.py
@@ -85,8 +85,7 @@ def action_add_host(request):
raise MKUserError(None, _("Foldername is missing"))
folders = folder_path.split("/")
for foldername in folders:
- # TODO: move to lib
- wato.check_wato_foldername(None, foldername, just_name = True)
+ check_wato_foldername(None, foldername, just_name = True)
# Validate and cleanup given attributes
# CLEANUP: modify WebAPI .nodes argument