xend: Fix c/s 20137 -- do not redefine built-in name 'str'.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-08-31 18:17:26 +01:00
1 parent dc7a191f9d
commit 18e7740068
1 file changed
+3 -3
+3 -3
View File
@@ -2411,10 +2411,10 @@ class XendDomainInfo:
log.exception(e)
if not self.domid or self.domid < 0:
str = 'Creating domain failed: name=%s' % self.info['name_label']
failmsg = 'Creating domain failed: name=%s' % self.info['name_label']
if self.domid:
str += ', error=%i' % int(self.domid)
raise VmError(str)
failmsg += ', error=%i' % int(self.domid)
raise VmError(failmsg)
self.dompath = GetDomainPath(self.domid)
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.