Compare commits

...

2 Commits
4.1.0 ... 4.1.1

Author SHA1 Message Date
Akihiro Motoki
8fe5386a00 Add release note of critial TypeError fix
This is a follow-up patch of https://review.openstack.org/#/c/288301

Related-Bug: #1552760
Change-Id: Ie5baf6df82db6b5d25bd4125332d8c8edfec9797
2016-03-04 11:58:43 +00:00
Rabi Mishra
3d1ea8bb16 Fix TypeError with error message
neutronclient throws type error when dealing with
i18n messages. This patch fixes it.

Change-Id: I08190eb7f6c54f0d44c671b1806423bba22ac0bf
Closes-Bug: #1552760
2016-03-04 10:08:39 +01:00
2 changed files with 7 additions and 1 deletions

View File

@@ -70,7 +70,8 @@ class NeutronClientException(NeutronException):
if self.request_ids:
req_ids_msg = self.req_ids_msg % self.request_ids
if message:
message += '\n' + req_ids_msg
message = _('%(msg)s\n%(id)s') % {'msg': message,
'id': req_ids_msg}
else:
message = req_ids_msg
super(NeutronClientException, self).__init__(message, **kwargs)

View File

@@ -0,0 +1,5 @@
---
critical:
- Fix a critical bug that when lazy translation is enabled
NeutronClientException raises a TypeError
(`bug 1552760 <https://bugs.launchpad.net/heat/+bug/1552760>`_).