diff options
| author | Petr Vobornik <pvoborni@redhat.com> | 2015-12-22 14:05:02 +0100 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-01-08 09:57:42 +0100 |
| commit | a291ca87803c1cbaeaba60006b52596ad77b7f4b (patch) | |
| tree | 29a26958ef6c88017dc71484212ddcd695c6ffeb | |
| parent | 3b39d8b6de3e9e3551c2c413db1fe8260979c593 (diff) | |
webui: add examples to network address validator error message
https://fedorahosted.org/freeipa/ticket/5532
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Gabe Alford <redhatrises@gmail.com>
| -rw-r--r-- | install/ui/test/data/ipa_init.json | 2 | ||||
| -rw-r--r-- | ipalib/plugins/internal.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index 3ac827811..310eef105 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -696,7 +696,7 @@ "ip_v6_address": "Not a valid IPv6 address", "max_value": "Maximum value is ${value}", "min_value": "Minimum value is ${value}", - "net_address": "Not a valid network address", + "net_address": "Not a valid network address (examples: 2001:db8::/64, 192.0.2.0/24)", "parse": "Parse error", "port": "'${port}' is not a valid port", "required": "Required field", diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index 276e92da8..a75772673 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -842,7 +842,7 @@ class i18n_messages(Command): "ip_v6_address": _('Not a valid IPv6 address'), "max_value": _("Maximum value is ${value}"), "min_value": _("Minimum value is ${value}"), - "net_address": _("Not a valid network address"), + "net_address": _("Not a valid network address (examples: 2001:db8::/64, 192.0.2.0/24)"), "parse": _("Parse error"), "port": _("'${port}' is not a valid port"), "required": _("Required field"), |
