From: Eric Price Date: Wed, 10 Oct 2007 02:19:05 +0000 (-0400) Subject: No longer force user_ at start of machine name on machine creation. X-Git-Tag: sipb-xen-www/1~71 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/7268d3236dc1ea69c8ff786e43ea77939c6d1a97?ds=sidebyside No longer force user_ at start of machine name on machine creation. Modify already doesn't enforce this. People seem to prefer this convention, and we used transactions to create and modify machines, so we don't think there are likely to be problems. It should result in nicer hostnames. (tabbott ghosting as ecprice again) svn path=/trunk/web/; revision=162 --- diff --git a/templates/list.tmpl b/templates/list.tmpl index a27fe0b..e300f61 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -71,7 +71,7 @@ $has_vnc[$machine] - + diff --git a/templates/main.py b/templates/main.py index e5dae26..36ea239 100755 --- a/templates/main.py +++ b/templates/main.py @@ -353,7 +353,7 @@ def create(user, fields): name = fields.getfirst('name') if not validMachineName(name): raise InvalidInput('name', name) - name = user.username + '_' + name.lower() + name = name.lower() if Machine.get_by(name=name): raise InvalidInput('name', name,
Name${user.username}_
Memory