Skip to content

Conversation

@laidbackware
Copy link
Contributor

switch get_thumb to use context.wrap_socket
due to removal of ssl.wrap_socket in python 3.12
fixed mixed indentation and mixed variable naming to snake case, as per python standard

This fixes #517

Tested as working in my lab

due to removal of ssl.wrap_socket in python 3.12

Signed-off-by: Matt Proud <[email protected]>
@laidbackware
Copy link
Contributor Author

@ggverma can you please prioritise merging this, as these modules do not work using recent versions of Linux, including Ubuntu 24.04.

@ushiba0
Copy link

ushiba0 commented May 28, 2025

I noticed that ssl.wrap_socket() is also used in plugins/modules/nsxt_transport_nodes.py, specifically within the get_api_cert_thumbprint() function.
Because of this, ansible-for-next does not work with Python 3.12, and as a result, it also fails to run on Ubuntu 24.04. Since this module doesn't work on the latest OS versions, I believe we should consider raising the priority of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compute manager failes with AttributeError: module 'ssl' has no attribute 'wrap_socket'

2 participants