Add keystone API versioning support
This patch adds an ability to specify keystone API version.
v3 is default.
Change-Id: I8810672ceef493e7dbd32b755705f4c0ccb30b63
diff --git a/_modules/cinderng.py b/_modules/cinderng.py
index 71d7c5c..08aaad9 100644
--- a/_modules/cinderng.py
+++ b/_modules/cinderng.py
@@ -32,10 +32,11 @@
'username': profile['user'],
'password': profile['password'],
'project_id': profile['project_id'],
- 'auth_url': "{}://{}:{}/v2.0".format(
+ 'auth_url': "{}://{}:{}/{}".format(
profile['protocol'],
profile['host'],
- profile['port']
+ profile['port'],
+ profile.get('api_version', 'v3')
),
'endpoint_type': profile['endpoint_type'],
'certificate': profile['certificate'],