mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Only write the DUMMY_CA_CERT on OS X
This commit is contained in:
parent
3b5aa8bd30
commit
1d3d73a0b6
1 changed files with 3 additions and 2 deletions
|
@ -137,8 +137,9 @@ class SSLValidationHandler(urllib2.BaseHandler):
|
|||
|
||||
tmp_fd, tmp_path = tempfile.mkstemp()
|
||||
|
||||
# Write the dummy ca cert
|
||||
os.write(tmp_fd, DUMMY_CA_CERT)
|
||||
# Write the dummy ca cert if we are running on Mac OS X
|
||||
if platform == 'Darwin':
|
||||
os.write(tmp_fd, DUMMY_CA_CERT)
|
||||
|
||||
# for all of the paths, find any .crt or .pem files
|
||||
# and compile them into single temp file for use
|
||||
|
|
Loading…
Reference in a new issue