yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60455
[Bug 1655833] Re: The error response for placement API doesn't work with i18n
I think I understand that wrong after some testing. Probably _() return
unicode also, so that shouldn't be a problem.
Maybe exc.format_message() is really a old thing.
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1655833
Title:
The error response for placement API doesn't work with i18n
Status in OpenStack Compute (nova):
Invalid
Bug description:
In most of placement API code, we just put the exception into the error message like this
https://github.com/openstack/nova/blob/d57ce1dda839865c8060458760fa27dbbd7e2aee/nova/api/openstack/placement/handlers/resource_class.py#L108
This is equal to str(exc). This won't works for i18n.
We can use "exc.format_message()"
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1655833/+subscriptions
References