Remove unnecessary try/except in container delete
It appears that the keystone sessions no longer trap the server error responses in an undesirable way, so this is not necessary anymore. Change-Id: Id73593535803fe589b317be923ad469cc0c3682b
This commit is contained in:
@@ -650,11 +650,7 @@ class ContainerManager(base.BaseEntityManager):
|
||||
"""
|
||||
if not container_ref:
|
||||
raise ValueError('container_ref is required.')
|
||||
try:
|
||||
self._api._delete(container_ref)
|
||||
except AttributeError:
|
||||
raise LookupError('Container {0} could not be deleted. '
|
||||
'Does it still exist?'.format(container_ref))
|
||||
self._api._delete(container_ref)
|
||||
|
||||
def list(self, limit=10, offset=0, name=None, type=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user