summaryrefslogtreecommitdiff
path: root/lib/ansible/collections/list.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-05-03 08:58:00 -0700
committerGitHub <noreply@github.com>2023-05-03 08:58:00 -0700
commit2cd1744be3d96f1eec674e1b66433c3730caa24f (patch)
tree8ab323420af73f978020366daeedd7c9ccd6f246 /lib/ansible/collections/list.py
parenteea7137449ba6a94126e97e463682319e030e6fd (diff)
downloadansible-2cd1744be3d96f1eec674e1b66433c3730caa24f.tar.gz
Use ansible.module_utils.common.text.converters (#80704)
Replace use of old `ansible.module_utils._text` and add a unit test to maintain backwards compatibility.
Diffstat (limited to 'lib/ansible/collections/list.py')
-rw-r--r--lib/ansible/collections/list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/collections/list.py b/lib/ansible/collections/list.py
index a867af2429..4c1e5502be 100644
--- a/lib/ansible/collections/list.py
+++ b/lib/ansible/collections/list.py
@@ -9,7 +9,7 @@ import os
from ansible.errors import AnsibleError
from ansible.cli.galaxy import with_collection_artifacts_manager
from ansible.galaxy.collection import find_existing_collections
-from ansible.module_utils._text import to_bytes
+from ansible.module_utils.common.text.converters import to_bytes
from ansible.utils.collection_loader import AnsibleCollectionConfig
from ansible.utils.collection_loader._collection_finder import _get_collection_name_from_path
from ansible.utils.display import Display