Module: check_mk
Branch: master
Commit: 9881eb66a1b94d428915d86d40e6b4a51a2a4a2d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9881eb66a1b94d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 25 11:30:11 2017 +0200
Master control: Handle case of disabled sites
Change-Id: I4e89246d84806e1f44a17fef93ecf29d67ac7e60
---
web/plugins/sidebar/shipped.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 6c0732a..0313339 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -1325,6 +1325,9 @@ def render_master_control():
if site_state["state"] == "dead":
html.show_error(site_state["exception"])
+ elif site_state["state"] == "disabled":
+ html.show_info(_("Site is disabled"))
+
else:
is_cmc = site_state["program_version"].startswith("Check_MK
")