There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 202, 300, 400, 401, 403, 404, 405, 500 and 503 under
tests/unit/volume/drivers are replaced with symbolic constants from
six.moves.http_client thus improves code readability. More patches will
be submitted to address other status codes.
Reviewed: https:/ /review. openstack. org/434896 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=adfa4c71dfa 96b5be2d2d80938 49fe05bd1421ef
Committed: https:/
Submitter: Jenkins
Branch: master
commit adfa4c71dfa96b5 be2d2d8093849fe 05bd1421ef
Author: poojajadhav <email address hidden>
Date: Fri Jan 27 19:19:17 2017 +0530
Extracted HTTP response codes to constants
There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 202, 300, 400, 401, 403, 404, 405, 500 and 503 under unit/volume/ drivers are replaced with symbolic constants from moves.http_ client thus improves code readability. More patches will
tests/
six.
be submitted to address other status codes.
Partial-Bug: #1520159 ce235d5605a2ae7 78f44d20fa1
Change-Id: Id5034fb1cac935