# HG changeset patch # User kfraser@localhost.localdomain # Date 1180086787 -3600 # Node ID a717cb2fac908ba82619ba52e34a2cc77942df4f # Parent 9073caff4b63490bc63bbe2b0b48fd06cc47d6c6 xend: Fix checkname so that it detects duplicate domains. Signed-off-by: Mats Petersson Index: xen-3.1-testing/tools/python/xen/xend/XendDomainInfo.py =================================================================== --- xen-3.1-testing.orig/tools/python/xen/xend/XendDomainInfo.py +++ xen-3.1-testing/tools/python/xen/xend/XendDomainInfo.py @@ -2057,7 +2057,7 @@ class XendDomainInfo: raise VmError('Invalid VM Name') dom = XendDomain.instance().domain_lookup_nr(name) - if dom and dom.info['uuid'] != self.info['uuid']: + if dom and dom.domid != self.domid: raise VmError("VM name '%s' already exists%s" % (name, dom.domid is not None and