mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-01 12:24:43 +00:00
[flake8-bugbear] Fix unused loop variable.
This commit change the name of a variable to make it more clear that it is not required in the for-loop, removing a bugbear B007 warning.
This commit is contained in:
@@ -169,7 +169,7 @@ def list_test_yaml(dir_path):
|
|||||||
`test_` and the extension is `.yml`.
|
`test_` and the extension is `.yml`.
|
||||||
"""
|
"""
|
||||||
yamls = []
|
yamls = []
|
||||||
for root, dirs, files in os.walk(dir_path):
|
for root, _dirs, files in os.walk(dir_path):
|
||||||
for yaml_name in files:
|
for yaml_name in files:
|
||||||
if yaml_name.startswith("test_") and yaml_name.endswith(".yml"):
|
if yaml_name.startswith("test_") and yaml_name.endswith(".yml"):
|
||||||
test_yaml_path = os.path.join(root, yaml_name)
|
test_yaml_path = os.path.join(root, yaml_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user