Fix a pointer to NotFound exception
Noticed an error in a run like this: Captured traceback-1: ~~~~~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "tempest/api/compute/base.py", line 437, in _detach_volume except exceptions.NotFound: AttributeError: 'module' object has no attribute 'NotFound' This exception was moved (I guess) but this spot was missed. Closes-Bug: #1733674 Change-Id: Ia61eafe58ffc9658f70a8867c7729555a4e1d91c
This commit is contained in:
parent
9bd78bcd65
commit
b3eab67390
@ -434,7 +434,7 @@ class BaseV2ComputeTest(api_version_utils.BaseMicroversionTest,
|
||||
# the compute API will return a 400 response.
|
||||
if volume['status'] == 'in-use':
|
||||
self.servers_client.detach_volume(server['id'], volume['id'])
|
||||
except exceptions.NotFound:
|
||||
except lib_exc.NotFound:
|
||||
# Ignore 404s on detach in case the server is deleted or the volume
|
||||
# is already detached.
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user