Fix missing print format and missing ws between words

This is to fix:
1. missing print format
2. missing ws between words in log messages

Change-Id: Iff9cd6c076388e347eb27f317157c6f7239e05bf
This commit is contained in:
zhufl 2019-08-05 11:14:37 +08:00
parent 73045dfbca
commit 5d4bf308c4
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ class SimpleCertCAResource(flask_restful.Resource):
@ks_flask.unenforced_api
def get(self):
raise exception.Gone(
message=_('This API is no longer available due to the removal'
message=_('This API is no longer available due to the removal '
'of support for PKI tokens.'))
@ -39,7 +39,7 @@ class SimpleCertListResource(flask_restful.Resource):
@ks_flask.unenforced_api
def get(self):
raise exception.Gone(
message=_('This API is no longer available due to the removal'
message=_('This API is no longer available due to the removal '
'of support for PKI tokens.'))

View File

@ -1316,7 +1316,7 @@ class BaseLdap(object):
if len(id_list) > 1:
message = ('In order to keep backward compatibility, in '
'the case of multivalued ids, we are '
'returning the first id %(id_attr) in the '
'returning the first id %(id_attr)s in the '
'DN.') % ({'id_attr': id_list[0]})
LOG.warning(message)
return id_list[0]