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:
Adam Harwell
2014-10-30 14:26:22 -05:00
parent 3312b7258f
commit 5ee3142abf

View File

@@ -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):
"""