Merge "Remove str() before exc to make sure lazy translation work"
This commit is contained in:
commit
f2a1edd3b9
@ -61,7 +61,7 @@ class NestedStack(stack_resource.StackResource):
|
||||
raise ValueError(_("Could not fetch remote template '%(url)s': "
|
||||
"%(exc)s") %
|
||||
{'url': self.properties[self.TEMPLATE_URL],
|
||||
'exc': str(r_exc)})
|
||||
'exc': r_exc})
|
||||
|
||||
return template_format.parse(template_data)
|
||||
|
||||
@ -105,7 +105,7 @@ class NestedStack(stack_resource.StackResource):
|
||||
raise ValueError(_("Could not fetch remote template '%(url)s': "
|
||||
"%(exc)s") %
|
||||
{'url': self.properties[self.TEMPLATE_URL],
|
||||
'exc': str(r_exc)})
|
||||
'exc': r_exc})
|
||||
|
||||
template = template_format.parse(template_data)
|
||||
|
||||
|
@ -49,7 +49,7 @@ class VolumeExtendTask(object):
|
||||
if self.clients.client_plugin('cinder').is_client_exception(ex):
|
||||
raise exception.Error(_(
|
||||
"Failed to extend volume %(vol)s - %(err)s") % {
|
||||
'vol': vol.id, 'err': str(ex)})
|
||||
'vol': vol.id, 'err': ex})
|
||||
else:
|
||||
raise
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user