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:
Morgan Fainberg 2018-08-11 09:40:51 -07:00
parent 2a04d78dbf
commit f62d98a085
1 changed files with 4 additions and 2 deletions

View File

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