Module: check_mk
Branch: master
Commit: b4dd7a8d06aca9d5e6e93a5aac54e2e76fd43b30
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b4dd7a8d06aca9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jun 29 13:29:10 2017 +0200
4923 FIX Host diagnostic: Fixed error when saving host with DNS name as IPv4 address
Change-Id: I234f790e666618a52b184a308cd351859ca16641
---
.werks/4923 | 11 +++++++++++
web/htdocs/wato.py | 7 ++++---
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/.werks/4923 b/.werks/4923
new file mode 100644
index 0000000..a20ccfe
--- /dev/null
+++ b/.werks/4923
@@ -0,0 +1,11 @@
+Title: Host diagnostic: Fixed error when saving host with DNS name as IPv4 address
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1498735705
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 91b338d..cd4fcdf 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2473,9 +2473,10 @@ def mode_diag_host(phase):
title = _('Hostname'),
allow_empty = False
)),
- ('ipaddress', IPv4Address(
- title = _('IP address'),
- allow_empty = False
+ ('ipaddress', HostAddress(
+ title = _("IPv4 Address"),
+ allow_empty = False,
+ allow_ipv6_address = False,
)),
('snmp_community', Password(
title = _("SNMPv1/2 community"),