Module: check_mk
Branch: master
Commit: c0197673f15c7ad251786faf3aace0f5f0122102
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c0197673f15c7a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 3 16:56:56 2016 +0200
Fixed issue with former distibuted sites in todays commit
---
web/htdocs/watolib.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index d32e7df..639baf6 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -3256,7 +3256,8 @@ def delete_distributed_wato_file():
def has_distributed_wato_file():
- return os.path.exists(defaults.check_mk_configdir +
"/distributed_wato.mk")
+ return os.path.exists(defaults.check_mk_configdir + "/distributed_wato.mk")
\
+ and os.stat(defaults.check_mk_configdir +
"/distributed_wato.mk").st_size != 0
# Makes sure, that in distributed mode we monitor only