Don't persist revocation events when deleting a role

This is no longer needed since the token provider API will
rebuild the token context at validation time. The revocation event
is not needed and we no longer need to store it.

Change-Id: I91315f620534974ab1102d693fbdff45e4ae8887
partial-bug: 1671887
This commit is contained in:
Lance Bragstad 2017-03-10 17:20:38 +00:00 committed by Richard Avelar
parent 2ea294c04e
commit 939881b77f
1 changed files with 0 additions and 6 deletions

View File

@ -82,11 +82,6 @@ class Manager(manager.Manager):
payload):
self.revoke_by_user(payload['resource_info'])
def _role_callback(self, service, resource_type, operation,
payload):
self.revoke(
revoke_model.RevokeEvent(role_id=payload['resource_info']))
def _project_callback(self, service, resource_type, operation,
payload):
self.revoke(
@ -119,7 +114,6 @@ class Manager(manager.Manager):
notifications.ACTIONS.deleted: [
['OS-TRUST:trust', self._trust_callback],
['OS-OAUTH1:consumer', self._consumer_callback],
['role', self._role_callback],
['user', self._user_callback],
['project', self._project_callback],
['role_assignment', self._role_assignment_callback]