Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions plugins/inventory/foreman.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@
from ansible.plugins.inventory import BaseInventoryPlugin, Cacheable, to_safe_group_name, Constructable

# 3rd party imports
try:
import truststore
truststore.inject_into_ssl()
except ImportError:
pass

try:
import requests
if LooseVersion(requests.__version__) < LooseVersion('1.1.0'):
Expand Down
5 changes: 5 additions & 0 deletions plugins/module_utils/_apypie.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ def _prepare_route_params(self, input_dict):
Apypie Api module
"""

try:
import truststore
truststore.inject_into_ssl()
except ImportError:
pass

import errno
import glob
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
requests>=2.4.2
PyYAML
truststore ; python_version >= "3.10"