Change 'status_code' to 'http_status' to parse SDK's exception

OpenstackSDK has changed the 'status_code' parameter to 'http_status'
in the recent commit Ib873c038358fb318ae46e8bc5bd3b4dfb683daaa.
Senlinclient should change it too to parse SDK's exception.

Change-Id: I5f8a0119c1f002a8c304f2f81a9f50dc7884e776
This commit is contained in:
xu-haiwei
2016-01-26 11:53:57 +09:00
parent 9ca308304e
commit e30bfcd7c3

View File

@@ -239,7 +239,7 @@ def parse_exception(exc):
# If the exc.details is not in JSON format
record = {
'error': {
'code': exc.status_code,
'code': exc.http_status,
'message': exc.details,
}
}