Module: check_mk
Branch: master
Commit: 84cae0a067424fa8fe6eac358abd451a92019459
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=84cae0a067424f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 22 10:39:17 2014 +0200
AB: fixed detection of do_bake_agents
---
modules/automation.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/automation.py b/modules/automation.py
index b4d26b6..742a1e3 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -725,7 +725,7 @@ def automation_restart(job="restart"):
else:
do_create_cmc_config(opt_cmc_relfilename)
- if bake_agents_on_restart:
+ if "do_bake_agents" in globals() and bake_agents_on_restart:
do_bake_agents()
except Exception, e: