mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xend: Fix checkname so that it detects duplicate domains.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
This commit is contained in:
1 parent
2320487314
commit
4117d5c1db
1 file changed
+1
-1
@@ -2086,7 +2086,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
|
||||
|
||||