commit | 2553e3bf70bac1e9647b19f77b502c8f78aa97f1 | [log] [tgz] |
---|---|---|
author | Ken'ichi Ohmichi <ken-oomichi@wx.jp.nec.com> | Tue Dec 06 15:50:36 2016 -0800 |
committer | Ken'ichi Ohmichi <ken-oomichi@wx.jp.nec.com> | Wed Dec 07 09:37:59 2016 -0800 |
tree | 161763e82a995eb5e3155a827fa1c0ac9bb9c680 | |
parent | 6912b893068ab5ec19982cf6a776d650d931b6fc [diff] |
Add status_code to RESTful exceptions tempest.lib rest_client translates a error response to the corresponding exception, but these exceptions don't have some attribute which shows the original status code. This patch adds that to them for re-using the original code after exceptions happen. Partially implements blueprint bug-notification-decorator Change-Id: Icfa90a5e5f1991d9b1dbc781bd60850b5bcb041e