Go to file
Andrey Kurilin 090e5ffc69 Fix from_response method to process response from requests
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
(cherry picked from commit 1b1917ab9b)
2016-09-07 12:54:24 +03:00
2015-10-21 07:55:06 -04:00
2016-07-05 11:11:36 +02:00
2016-04-30 07:48:35 +08:00
2012-12-05 14:02:19 -08:00
2012-11-09 12:52:21 +11:00
2016-01-20 19:39:01 +00:00
2016-07-27 15:27:30 +02:00
2015-09-18 16:42:00 +00:00
2016-07-27 15:27:30 +02:00

Python bindings to the Ceilometer API

Latest Version

Downloads

This is a client library for Ceilometer built on the Ceilometer API. It provides a Python API (the ceilometerclient module) and a command-line tool (ceilometer).

Description
RETIRED, OpenStack Telemetry (Ceilometer) Client
Readme 6.7 MiB