Fix a translation of log
Do not translate log messages. This fixes a translation of a log. Change-Id: I030d96c1d3a4a348ea206c901fee7d03209ecc1c
This commit is contained in:
parent
2a04d78dbf
commit
f62d98a085
|
@ -909,9 +909,11 @@ class ResourceBase(flask_restful.Resource):
|
|||
elif token_ref.project_scoped:
|
||||
return token_ref.project_domain_id
|
||||
else:
|
||||
msg = _('No domain information specified as part of list request')
|
||||
msg = 'No domain information specified as part of list request'
|
||||
tr_msg = _('No domain information specified as part of list '
|
||||
'request')
|
||||
LOG.warning(msg)
|
||||
raise exception.Unauthorized(msg)
|
||||
raise exception.Unauthorized(tr_msg)
|
||||
|
||||
@classmethod
|
||||
def get_token_ref(cls):
|
||||
|
|
Loading…
Reference in New Issue