Fix F402 pep8
Fix: ./manila/api/contrib/used_limits.py:45:27: F402 import 'quota' from line 19 shadowed by loop variable Rename the loop variable. Remove F402 from ignore list since it now passes. Change-Id: Iaa1f882d0ce1843496283a922b701860746995a2
This commit is contained in:
parent
518a2491b8
commit
7d61666a62
|
@ -42,9 +42,9 @@ class UsedLimitsController(wsgi.Controller):
|
|||
}
|
||||
|
||||
used_limits = {}
|
||||
for display_name, quota in six.iteritems(quota_map):
|
||||
if quota in quotas:
|
||||
used_limits[display_name] = quotas[quota]['in_use']
|
||||
for display_name, quota_name in six.iteritems(quota_map):
|
||||
if quota_name in quotas:
|
||||
used_limits[display_name] = quotas[quota_name]['in_use']
|
||||
|
||||
resp_obj.obj['limits']['absolute'].update(used_limits)
|
||||
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -42,6 +42,6 @@ commands = bash tools/lintstack.sh
|
|||
# TODO: These are not intentionally disabled, reenable when fixed:
|
||||
# H405: multi line docstring summary not separated with an empty line
|
||||
# H501: Do not use locals() for string formatting
|
||||
ignore = E12,H302,H303,H402,H404,H405,H501,H904,F401,F402,F403,F811,F812,F841
|
||||
ignore = E12,H302,H303,H402,H404,H405,H501,H904,F401,F403,F811,F812,F841
|
||||
builtins = _
|
||||
exclude = .venv,.tox,dist,doc,openstack,*egg
|
||||
|
|
Loading…
Reference in New Issue