Adds to Keystone to convert V2 endpoints to V3
The Domain Quota Management Driver uses the V3 Authentication Token. Also, it tries to contact Keystone for getting list of projects in a domain using V3 API like /v3/projects?domain_id=<id>. But the keystone v3/client.py default uses V2 API and hence code changed to convert V2 endpoints for V3 endpoints. This change is required to implement blue print domain-quota-driver-api Change-Id: If62ffc5e5252477bbe4d80f14c0a7653e11d5403 Closes-Bug: 1260916
This commit is contained in:
@@ -124,6 +124,8 @@ class Client(httpclient.HTTPClient):
|
||||
self._process_management_url(kwargs.get('region_name'))
|
||||
self.domain_name = self.auth_ref.domain_name
|
||||
self.domain_id = self.auth_ref.domain_id
|
||||
if self._management_url:
|
||||
self._management_url = self._management_url.replace('/v2.0', '/v3')
|
||||
|
||||
def get_raw_token_from_identity_service(self, auth_url, user_id=None,
|
||||
username=None,
|
||||
|
||||
Reference in New Issue
Block a user