← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1621888] [NEW] placement-api http responses are not marked for translation

 

Public bug reported:

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)

** Affects: nova
     Importance: Medium
         Status: Confirmed


** Tags: i18n placement

** Tags added: i18n placement

** Changed in: nova
       Status: New => Confirmed

** Changed in: nova
   Importance: Undecided => Medium

-- 
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):
  Confirmed

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


Follow ups