Add the version attribute to the Client class
There is a way to get the version of the API being used. We need such feature to work correct with different versions of the Cinder API from third-party tools. Change-Id: Ifde689df08644f9452138a9cd22052bc57fcb5d5
This commit is contained in:
parent
cfecd8ebe0
commit
349eb96052
@ -44,6 +44,8 @@ class Client(object):
|
||||
|
||||
"""
|
||||
|
||||
version = '1'
|
||||
|
||||
def __init__(self, username=None, api_key=None, project_id=None,
|
||||
auth_url='', insecure=False, timeout=None, tenant_id=None,
|
||||
proxy_tenant_id=None, proxy_token=None, region_name=None,
|
||||
|
@ -47,6 +47,8 @@ class Client(object):
|
||||
...
|
||||
"""
|
||||
|
||||
version = '2'
|
||||
|
||||
def __init__(self, username=None, api_key=None, project_id=None,
|
||||
auth_url='', insecure=False, timeout=None, tenant_id=None,
|
||||
proxy_tenant_id=None, proxy_token=None, region_name=None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user