mirror of https://github.com/ansible/ansible.git
Prefer the stdlib SSLContext over urllib3 context
We do not go through the effort of finding the right PROTOCOL setting if
we have SSLContext in the stdlib. So we do not want to hit the code
that uses PROTOCOL to set the urllib3-provided ssl context when
SSLContext is available. Also, the urllib3 implementation appears to
have a bug in some recent versions. Preferring the stdlib version will
work around that for those with Python-2.7.9+ as well.
Fixes #26235
Fixes #25402
Fixes #31998
(cherry picked from commit 725ae96e1b)
pull/36910/head
parent
bc9b44d907
commit
6020c0d4f6
Loading…
Reference in New Issue