yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #56585
[Bug 1621888] Re: placement-api http responses are not marked for translation
Reviewed: https://review.openstack.org/369035
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a4b5b0c859a6e194987652708b5473827a1cd604
Submitter: Jenkins
Branch: master
commit a4b5b0c859a6e194987652708b5473827a1cd604
Author: Chris Dent <cdent@xxxxxxxxxxxxx>
Date: Mon Sep 12 20:00:08 2016 +0000
[placement] Mark HTTP error responses for translation
The HTTP responses that are errors and provided messages to the
client should be marked for translation. This change does that.
Change-Id: If22270768c2e6cdb810e0e08b3a4ab7a42bf828d
Closes-Bug: #1621888
** Changed in: nova
Status: In Progress => Fix Released
--
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/1621888
Title:
placement-api http responses are not marked for translation
Status in OpenStack Compute (nova):
Fix Released
Bug description:
The HTTP error responses from the placement-api should be marked for
translation with _(), like here:
https://github.com/openstack/nova/blob/f441ee55c6f99a099fe1a68a6cfa486fd522554f/nova/api/openstack/placement/handlers/allocation.py#L101
raise webob.exc.HTTPBadRequest(
"Allocation for resource provider '%s' "
"that does not exist." % resource_provider_uuid,
json_formatter=util.json_error_formatter)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1621888/+subscriptions
References