From af298011501182ea196b9e3c6b106b789052ee69 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 24 Feb 2014 01:47:21 +0100 Subject: [PATCH] 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=. 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 --- keystoneclient/v3/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keystoneclient/v3/client.py b/keystoneclient/v3/client.py index 58df82b6c..c8e14f795 100644 --- a/keystoneclient/v3/client.py +++ b/keystoneclient/v3/client.py @@ -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,