Commit 5bde414d authored by Jérome Perrin's avatar Jérome Perrin

hack: disable SSL certificates, because vifib does not provide valid certificates yet

parent 60532d2e
......@@ -47,6 +47,21 @@ import threading
import time
import xmlrpclib
# XXX disable ssl certificate check, because vifib does not provide valid certificates yet
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
# Legacy Python that doesn't verify HTTPS certificates by default
pass
else:
# Handle target environment that doesn't support HTTPS verification
ssl._create_default_https_context = _create_unverified_https_context
__all__ = ['TaskDistributionTool', 'TestResultProxy', 'TestResultLineProxy', 'patchRPCParser']
# Depending on used xmlrpc backend, different exceptions can be thrown.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment