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.
Reviewed: https:/ /review. openstack. org/541170 /git.openstack. org/cgit/ openstack/ python- troveclient/ commit/ ?id=0b28b04ebbf aed981f4e00e69e 4c7a8e0ed75395
Committed: https:/
Submitter: Zuul
Branch: master
commit 0b28b04ebbfaed9 81f4e00e69e4c7a 8e0ed75395
Author: Zhao Chao <email address hidden>
Date: Tue Feb 6 15:31:42 2018 +0800
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: /github. com/Pylons/ webob/issues/ 235
https:/
But given this was apparently implemented as a long-overdue change
in WebOb the behavior is not likely to change.
Change-Id: Id8bfde6277640d e48768bbe5a5e42 52b97253ed2
Closes-Bug: #1559072
Co-Authored-By: Matt Riedemann <email address hidden>
Signed-off-by: Zhao Chao <email address hidden>