This commit is contained in:
committed by
Git OBS Bridge
parent
4c207325e4
commit
8c81bc310e
21
15168-check-dup-domians.patch
Normal file
21
15168-check-dup-domians.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
# 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 <mats.petersson@amd.com>
|
||||
|
||||
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
|
Reference in New Issue
Block a user