From 63668ea91e0bd03b8f9087ff7cb09e1795434f99 Mon Sep 17 00:00:00 2001 From: leizhang Date: Fri, 26 Jun 2015 21:08:12 +0800 Subject: [PATCH] Fix inconsistency of message and validation when create env(dashboard) If you create env with an invalid env name, the error message you get conflicts with the rule of validating env name, change the rule to adjust to the display message. Two validation rules need to be changed, one at murano api, the other at muranodashboard. Change-Id: Ib5a8a87cf295586214bced08c99a9e89ae1ee38f Closes-bug: #1463852 Depends-On: I285709bf63ac8106343dfcc9898066a0ed060cb6 --- muranodashboard/environments/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muranodashboard/environments/forms.py b/muranodashboard/environments/forms.py index f77911c35..902063fb4 100644 --- a/muranodashboard/environments/forms.py +++ b/muranodashboard/environments/forms.py @@ -24,7 +24,7 @@ from muranoclient.common import exceptions as exc from muranodashboard.environments import api LOG = logging.getLogger(__name__) -NAME_VALIDATORS = [validators.RegexValidator('^[a-zA-Z]+[\w-]*$')] +NAME_VALIDATORS = [validators.RegexValidator('^[a-zA-Z]+[\w.-]*$')] HELP_TEXT = _("Environment names must contain only alphanumeric or '_-.'" " characters and must start with alpha")