diff options
| author | Brian Elliott <brian.elliott@rackspace.com> | 2012-08-09 22:51:11 +0000 |
|---|---|---|
| committer | Brian Elliott <brian.elliott@rackspace.com> | 2012-08-12 00:40:18 +0000 |
| commit | 5646b96119947ba1b3086ac598d9c97bee3fca58 (patch) | |
| tree | 2dd0cdc1e433e4f2ec107b5d24298d2315cf2adc /nova/openstack | |
| parent | 7c9bb06622c72e5ec823f15a98cd9ea93d094f2a (diff) | |
| download | nova-5646b96119947ba1b3086ac598d9c97bee3fca58.tar.gz nova-5646b96119947ba1b3086ac598d9c97bee3fca58.tar.xz nova-5646b96119947ba1b3086ac598d9c97bee3fca58.zip | |
Fix TypeError conversion in API layer
Fix conversion of TypeError to Fault in ResourceExceptionHandler.
TypeError can result when the list of extensions is inovked if the
parameters don't match the extension method's signature.
Specifically, if an empty body was sent with an HTTP POST to create a
server, a 500 error was returned. This change is a fix to properly
return a 400 instead.
(In Python2.6, the ex_value argument of __exit__ is type string when
ex_type is a TypeError, which caused the conversion logic to get
skipped.)
bug 1035120
Change-Id: I96ad335a6338523345d28b7e744dbc7449b4753d
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
