| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Depends-On: Ic2947fd066a2df685d52539d0756cd981cc16113
Change-Id: I65738a55db82053643f7580eee20b63df52b957f
|
| |
|
|
|
|
|
|
| |
Even the HTTPException is unknown for ceilometer we should set the code
and print it with the details.
Closes-bug: #1626404
Change-Id: Ib244d8822f7a1ebc1b8ec1b95d13b20bbb69ece0
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SessionClient uses requests library. It's response class doesn't have
"status" property[1], so in case of any errors(with status code > 400),
from_response method is called and raises AttributeError.
Also, HTTPClient implementation uses requests lib by default[2](if 'http'
argument was not transmitted), so from_response method will raise
AttributeError too.
[1] - http://docs.python-requests.org/en/master/api/#requests.Response.status_code
[2] - https://github.com/openstack/python-ceilometerclient/blob/2.6.0/ceilometerclient/openstack/common/apiclient/client.py#L99-L100
Change-Id: Id8fb2f386e8101951716f30a6365c9aa15bd4b24
Closes-Bug: #1620974
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* E122 continuation line missing indentation or outdented
* E126 continuation line over-indented for hanging indent
* E128 continuation line under-indented for visual indent
* E265 block comment should start with '# '
Tested with pep8 version 1.5.6 (2014-04-14).
Change-Id: Iaea72c74d3678061b0ac837eb8fe8c85a883bb4a
|
| |/
|
|
|
|
|
|
| |
There are some exceptions defined in exc module, which is introduced
two years ago, and it is marked as DEPRECATED in the same time. It
should be removed for now, since there are no longer used.
Change-Id: I039575f37b0e6d1c30e447b74d61b8cd0b6bbd29
|
| |
|
|
|
|
|
|
| |
Display the faultstring of HTTPException if available, such as
HTTPBadRequest(400) error and HTTPNotFound(404) error.
Change-Id: I1c361ff5d02ded4af429f94fd4299d2de3798488
Closes-bug: #1297769
|
| |
|
|
|
|
|
|
| |
This patch parses the faultstring given by the server on 400 errors if
available.
Change-Id: Ieae2f0b39fed2c45f276d6c931bebfebab9f696e
Closes-Bug: bug #1260394
|
| |
|
|
|
|
| |
This is an effort to get the pep ignores to be closer to nova.
Change-Id: I451df579bbead00a8ff2c301c1a84e7c0a896002
|
|
|
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
|