From: Eric Price Date: Tue, 24 Jun 2008 01:40:25 +0000 (-0400) Subject: More accurate error message for new machine naming guidelines. X-Git-Tag: sipb-xen-www/3.6~19 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/22031e50d8c513cd2615431e14e2bd54616179f2 More accurate error message for new machine naming guidelines. svn path=/trunk/packages/sipb-xen-www/; revision=649 --- diff --git a/code/validation.py b/code/validation.py index e69559a..04b53ba 100644 --- a/code/validation.py +++ b/code/validation.py @@ -269,7 +269,7 @@ def testName(user, name, machine=None): return None if not Machine.select_by(name=name): if not validMachineName(name): - raise InvalidInput('name', name, 'You must provide a machine name. Max 22 chars, alnum plus \'-\' and \'_\'.') + raise InvalidInput('name', name, 'You must provide a machine name. Max 63 chars, alnum plus \'-\', does not begin or end with \'-\'.') return name raise InvalidInput('name', name, "Name is already taken.")