yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60406
[Bug 1655833] [NEW] The error response for placement API doesn't work with i18n
Public bug reported:
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()"
** Affects: nova
Importance: Undecided
Status: New
** Tags: placement
** Tags added: placement
--
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):
New
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
Follow ups