Module: check_mk
Branch: master
Commit: 64bb6954babf02b1a66c93345f524cb0238b6b13
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=64bb6954babf02…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 14 23:38:46 2013 +0100
FIX Fixed loading of sites with configured tcp socket in WATO
---
.werks/212 | 8 ++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 3 ++-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/212 b/.werks/212
new file mode 100644
index 0000000..b3f3ad7
--- /dev/null
+++ b/.werks/212
@@ -0,0 +1,8 @@
+Title: Fixed loading of sites with configured tcp socket in WATO
+Level: 1
+Component: wato
+Version: 1.2.3i7
+Date: 1384468641
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index ef447a0..5c66178 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,6 +42,7 @@
* 0205 FIX: Allowing star chars in variable names to fix role/permission editing...
* 0207 FIX: Explicit communities were not written to config files in all cases
* 0094 FIX: Hide SNMPv3 credentials in WATO...
+ * 0212 FIX: Fixed loading of sites with configured tcp socket in WATO
Notifications:
* 0005 Added notification script for sending SMS via
mobilant.com...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 0bdc225..f8ae000 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7576,7 +7576,8 @@ def mode_edit_site(phase):
if type(method) == str and method.startswith("unix:"):
method = ('unix', method[5:])
elif type(method) == str and method.startswith("tcp:"):
- method = ('tcp', tuple(method.split(":")[1:]))
+ parts = method.split(":")[1:]
+ method = ('tcp', (parts[0], int(parts[1])))
vs_conn_method.render_input("method", method)
html.help( _("When connecting to remote site please make sure "