Module: check_mk
Branch: master
Commit: 98152efce1b36bf962ef06c7f5e7923afba543db
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=98152efce1b36b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 5 15:38:43 2018 +0100
Fixed issue in recent change
Change-Id: Ie355a91b51cade351758b710c9ea653a888175e7
---
web/htdocs/watolib.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 64ae001..7b44f79 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -1701,8 +1701,9 @@ class CREFolder(BaseFolder):
for subfolder in self._subfolders.values():
subfolder.drop_caches()
- for host in self._hosts.values():
- host.drop_caches()
+ if self._hosts is not None:
+ for host in self._hosts.values():
+ host.drop_caches()
# .-----------------------------------------------------------------------.