Merge "Fix inconsistency of message and validation when create env(dashboard)"

This commit is contained in:
Jenkins 2015-06-29 09:55:50 +00:00 committed by Gerrit Code Review
commit 69c40fa433
1 changed files with 1 additions and 1 deletions

View File

@ -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")