summaryrefslogtreecommitdiff
path: root/keystone/catalog
diff options
context:
space:
mode:
authorBrant Knudson <bknudson@us.ibm.com>2016-01-07 14:08:38 -0600
committerBrant Knudson <bknudson@us.ibm.com>2016-01-07 14:44:02 -0600
commitc937b765ad56701ed02327efbc1299a47444dcff (patch)
tree879bd0e48d42183d77a8e7be6e07abed76eb9faf /keystone/catalog
parent7f485562f9fd9c44dabf779f4c32951dbac55885 (diff)
downloadkeystone-c937b765ad56701ed02327efbc1299a47444dcff.tar.gz
Reference driver methods through the Manager
The driver methods should be referenced through the Manager when possible so that the Manager can modify the driver call or return value if we need to. Change-Id: I66bda7a9b8a6a2cce6d9999e26f14a78a0ae4fef
Diffstat (limited to 'keystone/catalog')
-rw-r--r--keystone/catalog/core.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/keystone/catalog/core.py b/keystone/catalog/core.py
index d78e98e81..8947c8f01 100644
--- a/keystone/catalog/core.py
+++ b/keystone/catalog/core.py
@@ -327,9 +327,8 @@ class Manager(manager.Manager):
# membership recover the endpoint group
self.resource_api.get_project(project_id)
try:
- refs = self.driver.list_endpoint_groups_for_project(
- project_id)
- endpoint_groups = [self.driver.get_endpoint_group(
+ refs = self.list_endpoint_groups_for_project(project_id)
+ endpoint_groups = [self.get_endpoint_group(
ref['endpoint_group_id']) for ref in refs]
return endpoint_groups
except exception.EndpointGroupNotFound:
@@ -337,7 +336,7 @@ class Manager(manager.Manager):
def get_endpoints_filtered_by_endpoint_group(self, endpoint_group_id):
endpoints = self.list_endpoints()
- filters = self.driver.get_endpoint_group(endpoint_group_id)['filters']
+ filters = self.get_endpoint_group(endpoint_group_id)['filters']
filtered_endpoints = []
for endpoint in endpoints: