From 5232428b197ef66d34ba4198b2114bcb558bfa8e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 May 2020 02:24:16 +0200 Subject: [PATCH] jenkins-community-slave: verify HTTPS certificate in head() request Fixes a warning: /usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made to host 'build.ffh.zone'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings --- contrib/ci/jenkins-community-slave/slave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ci/jenkins-community-slave/slave.py b/contrib/ci/jenkins-community-slave/slave.py index 30455a87..fdb61f6e 100644 --- a/contrib/ci/jenkins-community-slave/slave.py +++ b/contrib/ci/jenkins-community-slave/slave.py @@ -70,7 +70,7 @@ if os.environ.get('SLAVE_SECRET') is None: def master_ready(url): try: - r = requests.head(url, verify=False, timeout=None) + r = requests.head(url, timeout=None) return r.status_code == requests.codes.ok except: return False