aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>2004-08-19 14:35:02 +0000
committermjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>2004-08-19 14:35:02 +0000
commitd96a999d460600e445e6806cccc53b1114a80b20 (patch)
tree0d9170c98ffa42b2c941cc91088a83b35827801e
parent5accb90fb702d49b56f60ca1b28aff9ee5abbbca (diff)
downloadxen-d96a999d460600e445e6806cccc53b1114a80b20.tar.gz
xen-d96a999d460600e445e6806cccc53b1114a80b20.tar.bz2
xen-d96a999d460600e445e6806cccc53b1114a80b20.zip
bitkeeper revision 1.1159.1.90 (4124ba96RLXO5OUyP4yBxVBa7NDnUw)
Allow some more characters in domain names.
-rw-r--r--tools/python/xen/xend/XendDomainInfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index 5e7bb91b78..309521ef81 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -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)