mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
parent
daeec920b0
commit
ce416f247f
1 changed files with 1 additions and 1 deletions
|
@ -1808,7 +1808,7 @@ def main():
|
||||||
module.fail_json(msg='pysphere does not support verifying certificates with python < 2.7.9. Either update python or set '
|
module.fail_json(msg='pysphere does not support verifying certificates with python < 2.7.9. Either update python or set '
|
||||||
'validate_certs=False on the task')
|
'validate_certs=False on the task')
|
||||||
|
|
||||||
if not validate_certs:
|
if not validate_certs and hasattr(ssl, 'SSLContext'):
|
||||||
ssl._create_default_https_context = ssl._create_unverified_context
|
ssl._create_default_https_context = ssl._create_unverified_context
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue