Commit 3dee81de authored by Jérome Perrin's avatar Jérome Perrin

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

parent 01844142
...@@ -47,6 +47,21 @@ import threading ...@@ -47,6 +47,21 @@ import threading
import time import time
import xmlrpclib 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'] __all__ = ['TaskDistributionTool', 'TestResultProxy', 'TestResultLineProxy', 'patchRPCParser']
# Depending on used xmlrpc backend, different exceptions can be thrown. # 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