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:
|
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
Summary
In Python 3.12 the deprecated
key_file,cert_fileandcheck_hostnameparameters 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
Which results in an error under Python 3.12:
Issue Type
Feature Idea
Component Name
module_utils/urls.py