vmware / ansible-for-nsxt

Ansible delivers simple IT automation that ends repetitive tasks and frees up DevOps teams for more strategic work. This project is to enable this automation for NSX-T installation.
Other
171 stars 145 forks source link

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

Open laidbackware opened 1 month ago

laidbackware commented 1 month ago

Describe the bug

nsxt_fabric_compute_managers module generates the following error if used under Python 3.12.

AttributeError: module 'ssl' has no attribute 'wrap_socket'

This is because ssl_wrap_socket() has be deprecated since Python 3.7. See description of the issue here

Link to alternate implementation.

Reproduction steps

This bug appears if you try to use the nsxt_fabric_compute_managers with Python 3.12.

Expected behavior

There is no error

Additional context

No response