From 034a7b417919ad3a047a2c006978493fb7eb836e Mon Sep 17 00:00:00 2001 From: "Bradley A. Thornton" Date: Tue, 1 Aug 2023 09:15:04 -0700 Subject: [PATCH] Else not needed --- src/pytest_ansible/units.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pytest_ansible/units.py b/src/pytest_ansible/units.py index 85ea47ef..258a333b 100644 --- a/src/pytest_ansible/units.py +++ b/src/pytest_ansible/units.py @@ -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"