From 024923ba6a53b8a433fcc6d917b03d58de5a110b Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 11 Nov 2014 12:18:20 -0500 Subject: [PATCH] Disable SSL verification for SaaS as a temporary workaround --- .../airtime_analyzer/airtime_analyzer/status_reporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py b/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py index ebf9a12d5..dfd1de086 100644 --- a/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py +++ b/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py @@ -103,7 +103,7 @@ def send_http_request(picklable_request, retry_queue): bare_request = picklable_request.create_request() s = requests.Session() prepared_request = s.prepare_request(bare_request) - r = s.send(prepared_request, timeout=StatusReporter._HTTP_REQUEST_TIMEOUT) + r = s.send(prepared_request, timeout=StatusReporter._HTTP_REQUEST_TIMEOUT, verify=False) # SNI is a pain in the ass t.cancel() # Watchdog no longer needed. r.raise_for_status() # Raise an exception if there was an http error code returned logging.info("HTTP request sent successfully.") @@ -140,7 +140,7 @@ def is_web_server_broken(url): caused by Airtime or the webserver itself being broken temporarily. ''' try: - test_req = requests.get(url) + test_req = requests.get(url, verify=False) test_req.raise_for_status() except Exception as e: return True