bitkeeper revision 1.1159.1.90 (4124ba96RLXO5OUyP4yBxVBa7NDnUw)

Allow some more characters in domain names.
This commit is contained in:
mjw@wray-m-3.hpl.hp.com committed 2004-08-19 14:35:02 +00:00
1 parent 5accb90fb7
commit d96a999d46
1 file changed
+2 -2
+2 -2
View File
@@ -444,7 +444,7 @@ class XendDomainInfo:
def check_name(self, name):
"""Check if a vm name is valid. Valid names start with a non-digit
and contain alphabetic characters, digits, or characters in '_-.'.
and contain alphabetic characters, digits, or characters in '_-.:/+'.
The same name cannot be used for more than one vm at the same time.
@param name: name
@@ -457,7 +457,7 @@ class XendDomainInfo:
raise VmError('invalid vm name')
for c in name:
if c in string.digits: continue
if c in '_-.': continue
if c in '_-.:/+': continue
if c in string.ascii_letters: continue
raise VmError('invalid vm name')
dominfo = domain_exists(name)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.