`retries` count is None if cinder client created with session
Bug #1684787 reported by
Georgy Dyuldin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Fix Released
|
Undecided
|
Georgy Dyuldin |
Bug Description
If cinderclient constructing with passing keystone session object, `retries` property became to be None (instead of 0).
Example here: http://
If python version is 3 - this raises a TypeError on comparison here https:/
(TypeError: unorderable types: int() > NoneType())
affects: | cinder → python-cinderclient |
Changed in python-cinderclient: | |
assignee: | nobody → Georgy Dyuldin (g-dyuldin) |
status: | New → In Progress |
description: | updated |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/458455 /git.openstack. org/cgit/ openstack/ python- cinderclient/ commit/ ?id=85b56e1d887 10453b3f2d5ceba 1ad5a8715eb842
Committed: https:/
Submitter: Jenkins
Branch: master
commit 85b56e1d8871045 3b3f2d5ceba1ad5 a8715eb842
Author: Georgy Dyuldin <email address hidden>
Date: Thu Apr 20 14:03:44 2017 +0300
Fix client `retries` default value.
In case of constructing Client with session without specifying `retries` client. Client. retries` value become to None, nt.client. SessionClient. _cs_request`
value, `cinderclient.
instead of 0. This raises TypeError on python 3 during comparison
`attempts > self.retries` on
`cinderclie
Closes-Bug: #1684787 2e9779e3e899560 6c9b34f2cde
Change-Id: If1ac36acb0d1c9