Module: check_mk
Branch: master
Commit: b2a75d460e8e085bd80823d0d847d1f8ca75ad8a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b2a75d460e8e08…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Sep 29 13:47:24 2016 +0200
move agent bakery Web-API to cmc git
---
web/plugins/webapi/webapi.py | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/web/plugins/webapi/webapi.py b/web/plugins/webapi/webapi.py
index 6ac6240..652020e 100644
--- a/web/plugins/webapi/webapi.py
+++ b/web/plugins/webapi/webapi.py
@@ -26,8 +26,6 @@
# TODO CLEANUP: Replace MKUserError by MKAPIError or something like that
-import cmk
-
def validate_request_keys(request, valid_keys):
for key in request.keys():
if key not in valid_keys:
@@ -342,17 +340,3 @@ api_actions["activate_changes"] = {
"locking" : True,
}
-def action_bake_agents(request):
- try:
- check_mk_local_automation('bake-agents')
- last_bake_file = var_dir + "last_bake.mk"
- file(last_bake_file, 'w').write('%s\n' % cmk.__version__)
- return _("Successfully baked agents")
- except Exception, e:
- raise e
-
-api_actions["bake_agents"] = {
- "handler" : action_bake_agents,
- "locking" : True,
-}
-