Skip to content

Commit

Permalink
Else not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
cidrblock committed Aug 1, 2023
1 parent 6bb3bc5 commit 034a7b4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pytest_ansible/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,14 @@ def acf_inject(paths: list[str]) -> None:


def determine_envvar() -> str:
"""Use the existance of the AnsibleCollectioFinder to determine
"""Use the existence of the AnsibleCollectionFinder to determine
the ansible version.
ansible 2.9 did not have AnsibleCollectionFinder and did not support ANSIBLE_COLLECTIONS_PATH
ansible 2.9 did not have AnsibleCollectionFinder and did not support ANSIBLE_COLLECTIONS_PATH
later versions do.
:returns: The appropriate environment variable to use
"""
if not HAS_COLLECTION_FINDER:
return "ANSIBLE_COLLECTIONS_PATHS"
else:
return "ANSIBLE_COLLECTIONS_PATH"
return "ANSIBLE_COLLECTIONS_PATH"

0 comments on commit 034a7b4

Please sign in to comment.