Correct RoleNotFound usage

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

Change-Id: I159cbc56bf0c8db23f213fa87f99464bb3770b23
changes/66/248466/2
Brant Knudson 7 years ago
parent 2feb7be843
commit c9a2d4c60d

@ -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)

Loading…
Cancel
Save