Correct RoleNotFound usage

RoleNotFound already has a format string so no need to override.

Change-Id: I159cbc56bf0c8db23f213fa87f99464bb3770b23
This commit is contained in:
Brant Knudson 2015-11-22 09:32:25 -06:00
parent 2feb7be843
commit c9a2d4c60d
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class AccessTokenRolesV3(controller.V3Controller):
if authed_role_id == role_id:
role = self._format_role_entity(role_id)
return AccessTokenRolesV3.wrap_member(context, role)
raise exception.RoleNotFound(_('Could not find role'))
raise exception.RoleNotFound(role_id=role_id)
def _format_role_entity(self, role_id):
role = self.role_api.get_role(role_id)