[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: Disallow "/" in domain names
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1265190302 0 # Node ID 2a775968c7a1614d9a799c44d7eec170340d573d # Parent 39424ff0c91ce95993b83aff919f08710c5c6c1c xend: Disallow "/" in domain names Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx> --- tools/python/xen/xend/XendDomainInfo.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r 39424ff0c91c -r 2a775968c7a1 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Wed Feb 03 09:44:12 2010 +0000 +++ b/tools/python/xen/xend/XendDomainInfo.py Wed Feb 03 09:45:02 2010 +0000 @@ -3472,7 +3472,7 @@ class XendDomainInfo: def _checkName(self, name): """Check if a vm name is valid. Valid names contain alphabetic - characters, digits, or characters in '_-.:/+'. + characters, digits, or characters in '_-.:+'. The same name cannot be used for more than one vm at the same time. @param name: name @@ -3483,7 +3483,7 @@ class XendDomainInfo: if name is None or name == '': raise VmError('Missing VM Name') - if not re.search(r'^[A-Za-z0-9_\-\.\:\/\+]+$', name): + if not re.search(r'^[A-Za-z0-9_\-\.\:\+]+$', name): raise VmError('Invalid VM Name') dom = XendDomain.instance().domain_lookup_nr(name) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |