Revert "Add error message when occurrence Forbidden error"

This reverts commit 3c0559def3.

This patch is breaking the Glance image share function.

Change-Id: Ic380b4fdeb334b70be39fcf07670902c0bc89dd9
This commit is contained in:
Feilong Wang 2020-03-18 08:58:37 +00:00
parent 3c0559def3
commit 1ff3720dae
1 changed files with 0 additions and 10 deletions

View File

@ -261,16 +261,6 @@ def find_resource(manager, name_or_id, **kwargs):
'resource': manager.resource_class.__name__.lower(),
'id': name_or_id,
})
if type(ex).__name__ == 'Forbidden':
msg = _(
"You are not authorized to find %(resource)s with the "
"name '%(id)s'."
)
raise exceptions.CommandError(msg % {
'resource': manager.resource_class.__name__.lower(),
'id': name_or_id,
})
else:
pass