diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-05-25 10:53:07 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-05-25 10:53:07 +0100 |
commit | 4117d5c1dbca483edcc2bb1b9430f87f122d9bc4 (patch) | |
tree | 7954df558fd24d968c8445a578ae2bb7a284df82 | |
parent | 23204873148ffa4b2c528bd5d2c43cfb26e132c2 (diff) | |
download | xen-4117d5c1dbca483edcc2bb1b9430f87f122d9bc4.tar.gz xen-4117d5c1dbca483edcc2bb1b9430f87f122d9bc4.tar.bz2 xen-4117d5c1dbca483edcc2bb1b9430f87f122d9bc4.zip |
xend: Fix checkname so that it detects duplicate domains.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
-rw-r--r-- | tools/python/xen/xend/XendDomainInfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index f7b8dda3db..3845a7ddad 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -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 |