Module: check_mk
Branch: master
Commit: b059c06de03ecf40090582680af5ce52d0823035
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b059c06de03ecf…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jun 21 21:20:34 2017 +0200
Trusted CAs: Fixed error reporting during initial WATO config creation
Change-Id: Ib2084851fac6a6a745dd2b2686489b026e3ba8d2
---
web/htdocs/watolib.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index f18b7fe..4e0bdbef 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -440,9 +440,11 @@ class ConfigDomainCACertificates(ConfigDomain):
# We need to activate this immediately to make syncs to WATO slave sites
# possible right after changing the option
- configuration_warnings = self._update_trusted_cas(current_config)
- if configuration_warnings:
- raise MKUserError(None, ", ".join(configuration_warnings))
+ #
+ # Since this can be called from any WATO page it is not possible to report
+ # errors to the user here. The self._update_trusted_cas() method logs the
+ # errors - this must be enough for the moment.
+ self._update_trusted_cas(current_config)
def activate(self):