Do not call deprecated functions

When getting a token using v3 API, a deprecated warning was logged
because the process wound up calling identity_api.get_domain.

The server shouldn't be using deprecated APIs.

Change-Id: I5b6e1aad6db9677abee04ff88c739722f358e386
This commit is contained in:
Brant Knudson 2014-02-03 19:30:42 -06:00
parent e2f8277e8d
commit 30b004c55b
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class V3TokenDataHelper(object):
self.trust_api = trust.Manager()
def _get_filtered_domain(self, domain_id):
domain_ref = self.identity_api.get_domain(domain_id)
domain_ref = self.assignment_api.get_domain(domain_id)
return {'id': domain_ref['id'], 'name': domain_ref['name']}
def _get_filtered_project(self, project_id):