direct-io.hg

changeset 15168:a717cb2fac90

xend: Fix checkname so that it detects duplicate domains.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
author kfraser@localhost.localdomain
date Fri May 25 10:53:07 2007 +0100 (2007-05-25)
parents 9073caff4b63
children 3fcd0b9fd083
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri May 25 10:23:16 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri May 25 10:53:07 2007 +0100
     1.3 @@ -2086,7 +2086,7 @@ class XendDomainInfo:
     1.4              raise VmError('Invalid VM Name')
     1.5  
     1.6          dom =  XendDomain.instance().domain_lookup_nr(name)
     1.7 -        if dom and dom.info['uuid'] != self.info['uuid']:
     1.8 +        if dom and dom.domid != self.domid:
     1.9              raise VmError("VM name '%s' already exists%s" %
    1.10                            (name,
    1.11                             dom.domid is not None and