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:
parent
3c0559def3
commit
1ff3720dae
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue