Merge "Error message missing tenant id"

This commit is contained in:
Jenkins 2015-05-28 22:03:09 +00:00 committed by Gerrit Code Review
commit 9185ef313d

View File

@ -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)