From 5f371207f32f0f9e0bff137f0a43fd9415d4bb51 Mon Sep 17 00:00:00 2001 From: ovarchenko <90888672+ovarchenko@users.noreply.github.com> Date: Wed, 13 Oct 2021 10:31:32 +0300 Subject: [PATCH] Re-enable SSL verification SSL verification was disabled without any reason; this is likely unintentional and causes warnings: ``` /usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'xxx'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings ``` --- portainer_cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portainer_cli/__init__.py b/portainer_cli/__init__.py index 03a1e44..b65efae 100755 --- a/portainer_cli/__init__.py +++ b/portainer_cli/__init__.py @@ -496,7 +496,7 @@ def request(self, path, method=METHOD_GET, data='', printc=False): prepped.headers['Content-Length'] = len(prepped.body) if self.jwt: prepped.headers['Authorization'] = 'Bearer {}'.format(self.jwt) - response = session.send(prepped, proxies=self.proxies, verify=False) + response = session.send(prepped, proxies=self.proxies) logger.debug('request response: {}'.format(response.content)) response.raise_for_status() if printc: