Merge "Error message missing tenant id"
This commit is contained in:
commit
9185ef313d
@ -66,8 +66,11 @@ class TenantBasedAuth(object):
|
|||||||
"%(request)s") %
|
"%(request)s") %
|
||||||
{'tenant_id': tenant_id, 'request': request}))
|
{'tenant_id': tenant_id, 'request': request}))
|
||||||
return True
|
return True
|
||||||
msg = _("User with tenant id %s cannot access this resource")
|
|
||||||
LOG.debug(msg % tenant_id)
|
msg = _(
|
||||||
|
"User with tenant id %s cannot access this resource.") % tenant_id
|
||||||
|
|
||||||
|
LOG.error(msg)
|
||||||
raise webob.exc.HTTPForbidden(msg)
|
raise webob.exc.HTTPForbidden(msg)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user