Skip to content

Commit

Permalink
Fix environment variable name check in for loop (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
joren485 committed Feb 14, 2021
1 parent ca07850 commit 99366d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/config.py
Expand Up @@ -64,7 +64,7 @@ def ansible_collections_path() -> str:
"""Return collection path variable for current version of Ansible."""
# respect Ansible behavior, which is to load old name if present
for env_var in ["ANSIBLE_COLLECTIONS_PATHS", "ANSIBLE_COLLECTIONS_PATH"]:
if "ANSIBLE_COLLECTIONS_PATHS" in os.environ:
if env_var in os.environ:
return env_var

# https://github.com/ansible/ansible/pull/70007
Expand Down

0 comments on commit 99366d2

Please sign in to comment.