Error message missing tenant id
The code just doesn't render the string correctly, adding the tenant id. Also, since this is a message that causes us to throw an exception, I've changed it from LOG.debug to LOG.error. Change-Id: Iafd5ba3cf12df9c60c491d39677231eee8be0a42 Closes-Bug: #1459067
This commit is contained in:
parent
4e3e0e83c6
commit
5f370b5f74
@ -66,8 +66,11 @@ class TenantBasedAuth(object):
|
||||
"%(request)s") %
|
||||
{'tenant_id': tenant_id, 'request': request}))
|
||||
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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user