mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 09:13:12 +00:00
Make concatenating certs robust in urls.py
Add a newline after each certificate file explicitly to avoid problems with files that do not end with a newline themselves.
This commit is contained in:
@@ -154,6 +154,7 @@ class SSLValidationHandler(urllib2.BaseHandler):
|
||||
try:
|
||||
cert_file = open(full_path, 'r')
|
||||
os.write(tmp_fd, cert_file.read())
|
||||
os.write(tmp_fd, '\n')
|
||||
cert_file.close()
|
||||
except:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user