diff options
| author | Dolph Mathews <dolph.mathews@gmail.com> | 2013-05-23 14:33:55 -0500 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-05-23 23:48:43 +0000 |
| commit | f9b535c84ed22f6831165cb0807029a44a01bddb (patch) | |
| tree | 8ed4140ea358a24751c7ffeec2ffa24bdaa2f498 /keystone/policy | |
| parent | 67175a667308e534c1d55931322bbd36e1e0a7c5 (diff) | |
| download | keystone-f9b535c84ed22f6831165cb0807029a44a01bddb.tar.gz keystone-f9b535c84ed22f6831165cb0807029a44a01bddb.tar.xz keystone-f9b535c84ed22f6831165cb0807029a44a01bddb.zip | |
consistent i18n placeholders (flake8 H701, H702, H703)
- eliminates ambiguously defined keywords in i18n strings which may
become incorrectly ordered in a corresponding translation.
- ensures formatting operations occur outside of i18n calls
- use bare multiline string concatenation instead of 'ab' + \n 'cd'
- eliminates an 'empty localization string' (passing a variable to i18n
function)
Change-Id: I0d78b978cc730e5fb892b80dfacaaf6687cd80be
Diffstat (limited to 'keystone/policy')
| -rw-r--r-- | keystone/policy/backends/rules.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keystone/policy/backends/rules.py b/keystone/policy/backends/rules.py index aa0228cc..8d1bb0f8 100644 --- a/keystone/policy/backends/rules.py +++ b/keystone/policy/backends/rules.py @@ -90,5 +90,7 @@ def enforce(credentials, action, target, do_raise=True): class Policy(policy.Driver): def enforce(self, credentials, action, target): - LOG.debug(_('enforce %s: %s'), action, credentials) + LOG.debug(_('enforce %(action)s: %(credentials)s') % { + 'action': action, + 'credentials': credentials}) enforce(credentials, action, target) |
