-
Notifications
You must be signed in to change notification settings - Fork 24.1k
Closed
Labels
P2Priority 2 - Issue Blocks ReleasePriority 2 - Issue Blocks Releaseaffects_2.16featureThis issue/PR relates to a feature request.This issue/PR relates to a feature request.has_prThis issue has an associated PR.This issue has an associated PR.
Description
Summary
In Python 3.12 the deprecated key_file, cert_file and check_hostname parameters have been removed.
There is code which still attempts to set these, such as:
ansible/lib/ansible/module_utils/urls.py
Lines 604 to 608 in 0371ea0
| def _build_https_connection(self, host, **kwargs): | |
| kwargs.update({ | |
| 'cert_file': self.client_cert, | |
| 'key_file': self.client_key, | |
| }) |
Which results in an error under Python 3.12:
> return httplib.HTTPSConnection(host, **kwargs)
E TypeError: HTTPSConnection.__init__() got an unexpected keyword argument 'cert_file'
Issue Type
Feature Idea
Component Name
module_utils/urls.py
Metadata
Metadata
Assignees
Labels
P2Priority 2 - Issue Blocks ReleasePriority 2 - Issue Blocks Releaseaffects_2.16featureThis issue/PR relates to a feature request.This issue/PR relates to a feature request.has_prThis issue has an associated PR.This issue has an associated PR.
Type
Projects
Status
Done