mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
1 parent
3dca648478
commit
aeb915bbac
1 file changed
+4
-2
@@ -1709,8 +1709,10 @@ class XendDomainInfo:
|
||||
|
||||
dom = XendDomain.instance().domain_lookup_nr(name)
|
||||
if dom and dom.info['uuid'] != self.info['uuid']:
|
||||
raise VmError("VM name '%s' already exists as domain %s" %
|
||||
(name, str(dom.domid)))
|
||||
raise VmError("VM name '%s' already exists%s" %
|
||||
(name,
|
||||
dom.domid is not None and
|
||||
("as domain %s" % str(dom.domid)) or ""))
|
||||
|
||||
|
||||
def update(self, info = None, refresh = True):
|
||||
|
||||