Mark some strings for translation

A couple of strings in keystone.assignment.controllers weren't
marked for translation.

Change-Id: I7a3dd0e61558d69a78d22329788aa92a4da49885
This commit is contained in:
Brant Knudson 2015-03-23 20:47:02 -05:00
parent 5332fbd100
commit 835ff221f1
1 changed files with 4 additions and 4 deletions

View File

@ -152,8 +152,8 @@ class RoleAssignmentV2(controller.V2Controller):
"""
self.assert_admin(context)
if tenant_id is None:
raise exception.NotImplemented(message='User roles not supported: '
'tenant_id required')
raise exception.NotImplemented(
message=_('User roles not supported: tenant_id required'))
self.assignment_api.add_role_to_user_and_project(
user_id, tenant_id, role_id)
@ -171,8 +171,8 @@ class RoleAssignmentV2(controller.V2Controller):
"""
self.assert_admin(context)
if tenant_id is None:
raise exception.NotImplemented(message='User roles not supported: '
'tenant_id required')
raise exception.NotImplemented(
message=_('User roles not supported: tenant_id required'))
# This still has the weird legacy semantics that adding a role to
# a user also adds them to a tenant, so we must follow up on that