Module: check_mk
Branch: master
Commit: 6e0621960d61d413cb3863d2869d6cb7f5c3d108
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6e0621960d61d4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 24 13:57:39 2012 +0200
FIX: Fixed bug managing local site in WATO sites management page
---
web/htdocs/wato.py | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ffa9bea..71ec08a 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6260,7 +6260,7 @@ def mode_edit_site(phase):
vs_conn_method = CascadingDropdown(
html_separator = " ",
choices = [
- ( "local", _("Connect to the local site") ),
+ ( None, _("Connect to the local site") ),
( "tcp", _("Connect via TCP"), Tuple(
orientation = "float",
elements = [
@@ -6319,8 +6319,6 @@ def mode_edit_site(phase):
else:
new_site["socket"] = method
- html.debug(new_site)
-
# Timeout
timeout = html.var("timeout", "").strip()
if timeout != "":
@@ -6426,10 +6424,10 @@ def mode_edit_site(phase):
forms.header(_("Livestatus settings"))
forms.section(_("Connection"))
- method = site.get("socket", "local")
- if method.startswith("unix:"):
+ method = site.get("socket", None)
+ if method and method.startswith("unix:"):
method = ('unix', method[5:])
- elif method.startswith("tcp:"):
+ elif method and method.startswith("tcp:"):
method = ('tcp', tuple(method.split(":")[1:]))
vs_conn_method.render_input("method", method)