diff options
| author | Chris Behrens <cbehrens@codestud.com> | 2012-08-21 18:28:59 +0000 |
|---|---|---|
| committer | Chris Behrens <cbehrens@codestud.com> | 2012-08-21 18:28:59 +0000 |
| commit | 3c73cbf550ebb3d3b0869f4ebd3870530c92f721 (patch) | |
| tree | ead856f2e14230dc99e1f9cdccd38d65f2feed00 /nova/openstack | |
| parent | 96e72e7295909cbe2ddb835283f68168cef883c1 (diff) | |
Make glance image service check base exception classes
Fixes bug 1039675
glanceclient can raise HTTPNotFound (as well as NotFound) it appears,
but glance image service is only converting NotFound ->
InstanceNotFound. Same applies to 'Forbidden' and other exceptions.
This patch converts 'exc_type is NotFound'-like checks to use
'isinstance' instead, which will cover HTTPNotFound, etc.
Change-Id: I0982875e667121cee3da3cfe0124499cad484fa6
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
