diff --git a/keystone/revoke/controllers.py b/keystone/revoke/controllers.py index 6a8dc297c4..7b0d5e1770 100644 --- a/keystone/revoke/controllers.py +++ b/keystone/revoke/controllers.py @@ -13,10 +13,14 @@ from oslo_utils import timeutils from keystone.common import controller +from keystone.common import provider_api from keystone import exception from keystone.i18n import _ +PROVIDERS = provider_api.ProviderAPIs + + class RevokeController(controller.V3Controller): @controller.protected() def list_revoke_events(self, request): @@ -35,7 +39,7 @@ class RevokeController(controller.V3Controller): # and should be deprecated in the near future. Fix this before adding # resource_options or any lazy-loaded relationships to the revocation # events themselves. - events = self.revoke_api.list_events(last_fetch=last_fetch) + events = PROVIDERS.revoke_api.list_events(last_fetch=last_fetch) # Build the links by hand as the standard controller calls require ids response = {'events': [event.to_dict() for event in events], 'links': {