direct-io.hg

changeset 2297:b2b49059dfef

bitkeeper revision 1.1159.1.90 (4124ba96RLXO5OUyP4yBxVBa7NDnUw)

Allow some more characters in domain names.
author mjw@wray-m-3.hpl.hp.com
date Thu Aug 19 14:35:02 2004 +0000 (2004-08-19)
parents 97a16adf6fc1
children 8aa79ed4d0b4
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Aug 19 14:30:28 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Aug 19 14:35:02 2004 +0000
     1.3 @@ -444,7 +444,7 @@ class XendDomainInfo:
     1.4  
     1.5      def check_name(self, name):
     1.6          """Check if a vm name is valid. Valid names start with a non-digit
     1.7 -        and contain alphabetic characters, digits, or characters in '_-.'.
     1.8 +        and contain alphabetic characters, digits, or characters in '_-.:/+'.
     1.9          The same name cannot be used for more than one vm at the same time.
    1.10  
    1.11          @param name: name
    1.12 @@ -457,7 +457,7 @@ class XendDomainInfo:
    1.13              raise VmError('invalid vm name')
    1.14          for c in name:
    1.15              if c in string.digits: continue
    1.16 -            if c in '_-.': continue
    1.17 +            if c in '_-.:/+': continue
    1.18              if c in string.ascii_letters: continue
    1.19              raise VmError('invalid vm name')
    1.20          dominfo = domain_exists(name)