refs #2054 use a global to specify TLS verification or not
parent
63944cef0e
commit
921706e9f0
|
@ -45,6 +45,7 @@ from .log import logger
|
|||
from .utils import exceptionToMessage
|
||||
|
||||
TIMEOUT = 5 # Connection timout, in seconds
|
||||
VERIFY_TLS=True
|
||||
|
||||
|
||||
class RESTError(Exception):
|
||||
|
@ -124,7 +125,7 @@ class REST(object):
|
|||
self.ca_file = ca_file
|
||||
self.crt_file = crt_file
|
||||
self.key_file = key_file
|
||||
self.verify_tls = False
|
||||
self.verify_tls = VERIFY_TLS
|
||||
|
||||
# Disable logging requests messages except for errors, ...
|
||||
logging.getLogger("requests").setLevel(logging.CRITICAL)
|
||||
|
|
Loading…
Reference in New Issue