Module: check_mk
Branch: master
Commit: 1b82a30e2392eac420b2eea29f532d12c1011c91
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1b82a30e2392ea…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jun 29 09:37:39 2012 +0200
FIX: fixed problem with disabled sites in WATO
---
ChangeLog | 1 +
web/htdocs/wato.py | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 29ed489..046a096 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,6 +42,7 @@
folder attributes
* FIX: fix exception on unknown value in DropdownChoice
* FIX: add service specification to ruleset Delay service notifications
+ * FIX: fixed problem with disabled sites in WATO
BI:
* New iterators FOREACH_CHILD and FOREACH_PARENT
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 5419cca..4c84465 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3410,6 +3410,7 @@ def mode_changelog(phase):
continue
if site.get("disabled"):
+ ss = {}
status = "disabled"
else:
ss = html.site_status.get(site_id, {})
@@ -7261,7 +7262,7 @@ def page_automation():
html.write(repr(automation_commands[command]()))
else:
- raise MKGeneralException(_("Invalid automation command."))
+ raise MKGeneralException(_("Invalid automation command: %s.") %
command)
def automation_push_snapshot():
try: