Module: check_mk
Branch: master
Commit: fda61f8ba29dee8a64ba4b9d368e26cd77d602e9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fda61f8ba29deeā¦
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Jun 23 12:43:47 2017 +0200
Updated werk 4782
Change-Id: Iab2e291bc4a1f05231a59a2e337b3cb4c4dd0e7f
---
web/htdocs/watolib.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 1d1bc97..13d53a5 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -1939,12 +1939,12 @@ class CREFolder(BaseFolder):
def _get_parents_of_hosts(self, host_names):
- # Note: Deletion of chosen hosts which are a parent
+ # Note: Deletion of chosen hosts which are parents
# is possible if and only if all children are chosen, too.
hosts_with_children = {}
for child_key, child in Folder.root_folder().all_hosts_recursively().items():
for host_name in host_names:
- if host_name in child.host_names():
+ if host_name in child.parents():
hosts_with_children.setdefault(host_name, [])
hosts_with_children[host_name].append(child_key)