Module: check_mk
Branch: master
Commit: 72a0018945e8d817d6a7e5bf97d7df46c080dc43
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=72a0018945e8d8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 23 17:38:30 2015 +0100
Fix Automation bake-agent: read configuration
---
modules/automation.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/automation.py b/modules/automation.py
index 95491e8..96217f2 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -46,8 +46,6 @@ def do_automation(cmd, args):
elif cmd == "update-dns-cache":
read_config_files(with_autochecks=False)
result = automation_update_dns_cache()
- elif cmd == "bake-agents":
- result = automation_bake_agents()
else:
read_config_files()
if cmd == "try-inventory":
@@ -78,6 +76,8 @@ def do_automation(cmd, args):
result = automation_notification_replay(args)
elif cmd == "notification-analyse":
result = automation_notification_analyse(args)
+ elif cmd == "bake-agents":
+ result = automation_bake_agents()
else:
raise MKAutomationError("Automation command '%s' is not
implemented." % cmd)