Module: check_mk
Branch: master
Commit: f8ec4371a3c26f492b9a832f13ff84349878c389
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f8ec4371a3c26f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 24 19:04:15 2012 +0200
FIX: D/WATO: mark site dirty after host deletion
---
ChangeLog | 3 ++-
web/htdocs/wato.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1a611e9..2d37894 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* FIX: handle UTF-8 encoded binary strings correctly (e.g. in host alias)
WATO:
+ * Site management: "disabled" only applies to Livestatus now
* FIX: fix folding problems with dependent host tags
* FIX: Detecting duplicate tag ids between regular tags and auxtags
* FIX: Fixed layout problem of "new special rule" button in rule editor
@@ -11,8 +12,8 @@
* FIX: fix site configuration for local site in Multisite environments
* FIX: "(no not monitor)" setting in distributed WATO now works
* FIX: Site management: replication setting was lost after re-editing
- * Site management: "disabled" only applies to Livestatus now
* FIX: fixed problems after changing D/WATO-configuration
+ * FIX: D/WATO: mark site dirty after host deletion
Multisite:
* New display type 'boxes-omit-root' for BI views
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 0e85588..0800979 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1936,11 +1936,12 @@ def delete_host_after_confirm(delname):
c = wato_confirm(_("Confirm host deletion"),
_("Do you really want to delete the host
<tt>%s</tt>?") % delname)
if c:
+ mark_affected_sites_dirty(g_folder, delname)
+ log_pending(AFFECTED, delname, "delete-host", _("Deleted host
%s") % delname)
host = g_folder[".hosts"][delname]
del g_folder[".hosts"][delname]
g_folder["num_hosts"] -= 1
save_folder_and_hosts(g_folder)
- log_pending(AFFECTED, delname, "delete-host", _("Deleted host
%s") % delname)
check_mk_automation(host[".siteid"], "delete-host",
[delname])
call_hook_hosts_changed(g_folder)
return "folder"