Cannot to delete vim, if barbican's secret does not existed.

When deleting vim, if the fernet key associated with vim does not
exist in barbican, vim is also allowed to be deleted.

Change-Id: Icec26074423fb0fcd04f0051706402c15da86d08
Closes-bug: #1783959
This commit is contained in:
Li Jiale 2018-07-27 16:03:41 +08:00
parent 0da9469017
commit 13d85bdeb1
1 changed files with 1 additions and 2 deletions

View File

@ -245,7 +245,6 @@ class BarbicanKeyManager(key_manager.KeyManager):
barbican_exception.HTTPServerError) as e:
LOG.error("Error deleting object: %s", e)
if self._is_secret_not_found_error(e):
raise exception.ManagedObjectNotFoundError(
uuid=managed_object_id)
pass
else:
raise exception.KeyManagerError(reason=e)