Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions collection_prep/cmd/add_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@

import yaml

from ansible.module_utils._text import to_text

try:
from ansible.module_utils.common.text.converters import to_text
except ImportError:
from ansible.module_utils._text import to_text
from ansible.module_utils.common.collections import is_sequence
from ansible.module_utils.six import string_types
from ansible.plugins.loader import fragment_loader
Expand Down Expand Up @@ -462,7 +466,7 @@ def add_collection(path: Path, galaxy: dict) -> Optional[tempfile.TemporaryDirec

# Tell ansible about the path
_AnsibleCollectionFinder( # pylint: disable-msg=protected-access
paths=[collections_path, "~/.ansible/collections"]
paths=[to_text(collections_path), "~/.ansible/collections"]
)._install()

# This object has to outlive this method or it will be cleaned up before
Expand Down