diff options
| author | Georgy Dyuldin <g.dyuldin@gmail.com> | 2017-04-20 14:03:44 +0300 |
|---|---|---|
| committer | Georgy Dyuldin <g.dyuldin@gmail.com> | 2017-05-02 14:09:57 +0300 |
| commit | 85b56e1d88710453b3f2d5ceba1ad5a8715eb842 (patch) | |
| tree | 1876395cec39724a0083dce4b3e259d5a82cd654 /cinderclient/v2 | |
| parent | 51f6668e482b35896018b26d24f8baf05441005f (diff) | |
| download | python-cinderclient-85b56e1d88710453b3f2d5ceba1ad5a8715eb842.tar.gz | |
Fix client `retries` default value.
In case of constructing Client with session without specifying `retries`
value, `cinderclient.client.Client.retries` value become to None,
instead of 0. This raises TypeError on python 3 during comparison
`attempts > self.retries` on
`cinderclient.client.SessionClient._cs_request`
Closes-Bug: #1684787
Change-Id: If1ac36acb0d1c92e9779e3e8995606c9b34f2cde
Diffstat (limited to 'cinderclient/v2')
| -rw-r--r-- | cinderclient/v2/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cinderclient/v2/client.py b/cinderclient/v2/client.py index c286a96..1a3fbfa 100644 --- a/cinderclient/v2/client.py +++ b/cinderclient/v2/client.py @@ -55,7 +55,7 @@ class Client(object): proxy_tenant_id=None, proxy_token=None, region_name=None, endpoint_type='publicURL', extensions=None, service_type='volumev2', service_name=None, - volume_service_name=None, bypass_url=None, retries=None, + volume_service_name=None, bypass_url=None, retries=0, http_log_debug=False, cacert=None, auth_system='keystone', auth_plugin=None, session=None, api_version=None, logger=None, **kwargs): |
