From 3fe5f577e6bf944c2927f77eb687e0930c21643f Mon Sep 17 00:00:00 2001 From: Filip Chyla Date: Mon, 4 Apr 2022 22:40:02 +0200 Subject: [PATCH] make collection warning message clearer (#74859) --- lib/ansible/cli/galaxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/cli/galaxy.py b/lib/ansible/cli/galaxy.py index 95f1230551a..5896f3b573c 100755 --- a/lib/ansible/cli/galaxy.py +++ b/lib/ansible/cli/galaxy.py @@ -1319,8 +1319,8 @@ class GalaxyCLI(CLI): collections_path = C.COLLECTIONS_PATHS if len([p for p in collections_path if p.startswith(path)]) == 0: display.warning("The specified collections path '%s' is not part of the configured Ansible " - "collections paths '%s'. The installed collection won't be picked up in an Ansible " - "run." % (to_text(path), to_text(":".join(collections_path)))) + "collections paths '%s'. The installed collection will not be picked up in an Ansible " + "run, unless within a playbook-adjacent collections directory." % (to_text(path), to_text(":".join(collections_path)))) output_path = validate_collection_path(path) b_output_path = to_bytes(output_path, errors='surrogate_or_strict')