diff options
author | Maru Newby <mnewby@internap.com> | 2012-02-02 12:52:10 -0800 |
---|---|---|
committer | Maru Newby <mnewby@internap.com> | 2012-02-03 00:15:12 -0800 |
commit | 07d74aa916ee2798f717ae5d298f8ca51e883770 (patch) | |
tree | 7c3bd4e05d6fa42f2daa2eb2c5e9b7a8e3c6932d /nova/log.py | |
parent | 54d7fdc0c8448765d14b4c3bec23f91e0d0aade7 (diff) | |
download | nova-07d74aa916ee2798f717ae5d298f8ca51e883770.tar.gz nova-07d74aa916ee2798f717ae5d298f8ca51e883770.tar.xz nova-07d74aa916ee2798f717ae5d298f8ca51e883770.zip |
Raise ApiError in response to InstanceTypeNotFound
* Updates methods in nova.compute.instance_types to catch
InstanceTypeNotFound exceptions and re-raise them as ApiError.
- Previously, the methods in instance_types were raising ApiError in
response to DBError, but the underlying db calls have since been
updated to detect empty results and throw more specific exceptions.
* Updates get_instance_type_by_flavor_id to not try to catch DBError,
as the underlying db call only ever raises FlavorNotFound.
get_instance_type_by_flavor_id should not raise ApiError, as callers
expect the FlavorNotFound exception and know how to handle it.
* Fixes bug 872618
Change-Id: I8652f04889adb448017afd253ecdcc840fbb660f
Diffstat (limited to 'nova/log.py')
0 files changed, 0 insertions, 0 deletions