Tidy error message.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-12-04 10:27:23 +00:00
1 parent 3dca648478
commit aeb915bbac
1 file changed
+4 -2
+4 -2
View File
@@ -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):
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.