Skip to content

Commit

Permalink
Fix message for server name with whitespace
Browse files Browse the repository at this point in the history
Change-Id: I9007ada4db6502da084fe44ab585e62e689e2f4f
Fixes: bug #1207625
  • Loading branch information
Hirofumi Ichihara committed Aug 15, 2013
1 parent f953e20 commit 6f47afd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nova/utils.py
Expand Up @@ -1104,8 +1104,8 @@ def check_string_length(value, name, min_length=0, max_length=None):
raise exception.InvalidInput(message=msg)

if len(value) < min_length:
msg = _("%(name)s has less than %(min_length)s "
"characters.") % {'name': name, 'min_length': min_length}
msg = _("%(name)s has a minimum character requirement of "
"%(min_length)s.") % {'name': name, 'min_length': min_length}
raise exception.InvalidInput(message=msg)

if max_length and len(value) > max_length:
Expand Down

0 comments on commit 6f47afd

Please sign in to comment.