Module: check_mk
Branch: master
Commit: ed4f3cfac67389700cf3b21f4a433401687abf39
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ed4f3cfac67389…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Nov 2 14:32:11 2017 +0100
update for WK5238
Change-Id: I2f427b4625fa1482a0872fff6e500cb1e21a8030
---
web/htdocs/valuespec.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index ee74dea..b5bada1 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -4607,7 +4607,8 @@ class SiteChoice(DropdownChoice):
authorized_site_ids = map(lambda x: x[0],
config.user.authorized_sites(unfiltered_sites=config.configured_sites()))
if default_site and default_site in authorized_site_ids:
return default_site
- raise
+
+ return canonical_value()
def _site_choices(self):