Module: check_mk
Branch: master
Commit: b99c6d75e2a66161caee98bf1e91eca90d7ad2c4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b99c6d75e2a661…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 26 14:42:14 2018 +0200
6371 FIX Fixed broken Global Settings page when liveproxyd is disabled
The global settings page could only be rendered partially and showed an error
message like "KeyError: 'liveproxyd_log_levels'" when the livestatus
proxy
daemon was disabled for a site in all previous 1.5 releases.
Change-Id: I3abcb2ccb9f86890a262cf88615a4252e724202d
---
.werks/6371 | 13 +++++++++++++
cmk/gui/wato/pages/global_settings.py | 3 +++
2 files changed, 16 insertions(+)
diff --git a/.werks/6371 b/.werks/6371
new file mode 100644
index 0000000..89a4e0f
--- /dev/null
+++ b/.werks/6371
@@ -0,0 +1,13 @@
+Title: Fixed broken Global Settings page when liveproxyd is disabled
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.6.0i1
+Date: 1532607063
+
+The global settings page could only be rendered partially and showed an error
+message like "KeyError: 'liveproxyd_log_levels'" when the livestatus
proxy
+daemon was disabled for a site in all previous 1.5 releases.
diff --git a/cmk/gui/wato/pages/global_settings.py
b/cmk/gui/wato/pages/global_settings.py
index e3811ef..be346d0 100644
--- a/cmk/gui/wato/pages/global_settings.py
+++ b/cmk/gui/wato/pages/global_settings.py
@@ -108,6 +108,9 @@ class GlobalSettingsMode(WatoMode):
header_is_painted = False # needed for omitting empty groups
for domain, varname, valuespec in watolib.configvar_groups()[group_name]:
+ if not domain.enabled():
+ continue
+
if domain == watolib.ConfigDomainCore and varname not in
self._default_values:
if config.debug:
raise MKGeneralException("The configuration variable
<tt>%s</tt> is unknown to "