summaryrefslogtreecommitdiff
path: root/lib/ansible/galaxy
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2020-01-17 15:27:15 -0500
committerGitHub <noreply@github.com>2020-01-17 15:27:15 -0500
commit9a51dff0b17f01bcb280a438ecfe785e5fda4541 (patch)
treea36bb84681ec0d3d18b4d1ed76882da90ff333a9 /lib/ansible/galaxy
parent87fd93f14005c858e558209ec34ca401c19d445a (diff)
downloadansible-9a51dff0b17f01bcb280a438ecfe785e5fda4541.tar.gz
Rename private function (#66577)
Make find_existing_collections() a public function since it is being used across mulitple files now to support listing and verifying collections
Diffstat (limited to 'lib/ansible/galaxy')
-rw-r--r--lib/ansible/galaxy/collection.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/galaxy/collection.py b/lib/ansible/galaxy/collection.py
index 00e055d0a9..5303b2a3c4 100644
--- a/lib/ansible/galaxy/collection.py
+++ b/lib/ansible/galaxy/collection.py
@@ -428,7 +428,7 @@ def install_collections(collections, output_path, apis, validate_certs, ignore_e
:param force: Re-install a collection if it has already been installed.
:param force_deps: Re-install a collection as well as its dependencies if they have already been installed.
"""
- existing_collections = _find_existing_collections(output_path)
+ existing_collections = find_existing_collections(output_path)
with _tempdir() as b_temp_path:
display.display("Process install dependency map")
@@ -760,7 +760,7 @@ def _build_collection_tar(b_collection_path, b_tar_path, collection_manifest, fi
display.display('Created collection for %s at %s' % (collection_name, to_text(b_tar_path)))
-def _find_existing_collections(path):
+def find_existing_collections(path):
collections = []
b_path = to_bytes(path, errors='surrogate_or_strict')