Correct failures for check E122

The E122 "continuation line missing indentation or outdented" rule was
failing and ignored. Now it's enforced.

Change-Id: Ic0d457bb597fad91da1afd3007563e0bd97f9fbb
This commit is contained in:
Brant Knudson 2015-01-11 18:23:19 -06:00
parent a31ed5ca4f
commit f2ee535039
2 changed files with 6 additions and 6 deletions

View File

@ -767,10 +767,11 @@ class AuthProtocol(object):
def _fmt_msg(env):
msg = ('user: user_id %s, project_id %s, roles %s '
'service: user_id %s, project_id %s, roles %s' % (
env.get('HTTP_X_USER_ID'), env.get('HTTP_X_PROJECT_ID'),
env.get('HTTP_X_ROLES'), env.get('HTTP_X_SERVICE_USER_ID'),
env.get('HTTP_X_SERVICE_PROJECT_ID'),
env.get('HTTP_X_SERVICE_ROLES')))
env.get('HTTP_X_USER_ID'), env.get('HTTP_X_PROJECT_ID'),
env.get('HTTP_X_ROLES'),
env.get('HTTP_X_SERVICE_USER_ID'),
env.get('HTTP_X_SERVICE_PROJECT_ID'),
env.get('HTTP_X_SERVICE_ROLES')))
return msg
self._token_cache.initialize(env)

View File

@ -32,11 +32,10 @@ downloadcache = ~/cache/pip
commands = oslo_debug_helper {posargs}
[flake8]
# E122: continuation line missing indentation or outdented
# F821: undefined name
# H304: no relative imports
# H405: multi line docstring summary not separated with an empty line
ignore = E122,F821,H304,H405
ignore = F821,H304,H405
show-source = True
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*