diff options
author | Chris Behrens <cbehrens@codestud.com> | 2012-01-11 20:25:23 -0800 |
---|---|---|
committer | Chris Behrens <cbehrens@codestud.com> | 2012-01-12 01:28:01 -0800 |
commit | 475691a4bd5795feb50b5c9ccfe98e6487390e58 (patch) | |
tree | b1143ca2ef62f961b0f2bc490a057e60dfbdfffc /nova/context.py | |
parent | 6ece432be0cfb7356636806ab3c046eff17d494b (diff) | |
download | nova-475691a4bd5795feb50b5c9ccfe98e6487390e58.tar.gz nova-475691a4bd5795feb50b5c9ccfe98e6487390e58.tar.xz nova-475691a4bd5795feb50b5c9ccfe98e6487390e58.zip |
catch InstanceInvalidState in more places
Further fixes to bug 911879
500s or 400s are returned in the OS API when actions are denied due
to being in an invalid state. 409 should be returned, instead. A
previous review (2846) fixed the delete case and this fixes more.
When writing tests, I found a number of exceptions that are not raised
anymore, and they were being incorrectly used in tests still. I fixed
those up.
Change-Id: I0d5b1ed52e0cc9766be8e2a7de84c8601f4bdf26
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions