python-troveclient/troveclient
Zhao Chao 0b28b04ebb Handle error response for webob>=1.6.0
WebOb change https://github.com/Pylons/webob/pull/230 changed
the way in which the error response body is formatted such that
it's no longer a nested dict. So we have to handle both the
old convention of an error message key to the response body error
dict and the new way with just the error body dict.

This was reported upstream:
https://github.com/Pylons/webob/issues/235

But given this was apparently implemented as a long-overdue change
in WebOb the behavior is not likely to change.

Change-Id: Id8bfde6277640de48768bbe5a5e4252b97253ed2
Closes-Bug: #1559072
Co-Authored-By: Matt Riedemann <mriedem@us.ibm.com>
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-02-06 16:00:59 +08:00
..
apiclient Handle error response for webob>=1.6.0 2018-02-06 16:00:59 +08:00
compat Enable Keystone v3 support for compat client 2017-10-09 14:40:44 -05:00
osc Merge "Fix log-enable high priority error" 2018-01-23 16:26:56 +00:00
tests Handle error response for webob>=1.6.0 2018-02-06 16:00:59 +08:00
v1 Merge "Fix error with configuration-parameter-show" 2017-12-25 20:43:54 +00:00
__init__.py Remove vim header 2014-02-16 13:08:07 +08:00
_i18n.py Update the doc link 2017-11-24 16:04:43 +00:00
auth_plugin.py Remove log translations 2017-11-17 14:49:56 +05:30
base.py move old apiclient code out of openstack/common 2016-11-10 10:02:08 -05:00
client.py Handle log message interpolation by the logger 2017-03-08 10:00:34 -08:00
common.py move old apiclient code out of openstack/common 2016-11-10 10:02:08 -05:00
exceptions.py move old apiclient code out of openstack/common 2016-11-10 10:02:08 -05:00
extension.py Support Extensions to Trove Client 2014-01-23 11:11:58 -08:00
i18n.py Update the doc link 2017-11-24 16:04:43 +00:00
service_catalog.py move old apiclient code out of openstack/common 2016-11-10 10:02:08 -05:00
shell.py Correct help in --profile argument 2017-07-14 08:23:18 +07:00
utils.py Fix show instance with integer name NotFound 2018-01-16 16:00:29 +08:00