From 5d4bf308c4d392ced48fd81003e2816984c78712 Mon Sep 17 00:00:00 2001 From: zhufl Date: Mon, 5 Aug 2019 11:14:37 +0800 Subject: [PATCH] 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 --- keystone/api/os_simple_cert.py | 4 ++-- keystone/identity/backends/ldap/common.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/keystone/api/os_simple_cert.py b/keystone/api/os_simple_cert.py index d5a48c1851..7250c6c76a 100644 --- a/keystone/api/os_simple_cert.py +++ b/keystone/api/os_simple_cert.py @@ -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.')) diff --git a/keystone/identity/backends/ldap/common.py b/keystone/identity/backends/ldap/common.py index b9becea749..3036bc4c52 100644 --- a/keystone/identity/backends/ldap/common.py +++ b/keystone/identity/backends/ldap/common.py @@ -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]