xend: Fix checkname so that it detects duplicate domains.

Signed-off-by: Mats Petersson <mats.petersson@amd.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-05-25 10:53:07 +01:00
1 parent 2320487314
commit 4117d5c1db
1 file changed
+1 -1
+1 -1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.