Module: check_mk
Branch: master
Commit: d5d2fa9e95a91093ee6205b8a669e6b96aadab93
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d5d2fa9e95a910…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 11 12:25:10 2012 +0200
WATO: fix parent scan on single site installations
---
ChangeLog | 1 +
web/htdocs/wato.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5820590..10d374f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
* Hide check_mk variable names per default now (change via global settings)
* New layout of global settings
* Folder layout: show contact groups of folder
+ * FIX: fix parent scan on single site installations
* FIX: fix folder visibility permission handling
* FIX: honor folder-permissions when creating, deleting
and modifiying rules
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d04acee..7058b02 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3037,7 +3037,7 @@ def configure_gateway(state, site_id, folder, host, effective,
gateway):
# only set it explicitely if it differs from the id of the
# folder.
e = effective_attributes(new_host, gw_folder)
- if e["site"] != site_id:
+ if "site" in e and e["site"] != site_id:
new_host["site"] = site_id
gw_folder[".hosts"][new_host[".name"]] = new_host