From 933ba772d93be6528a0a735c6c74aedfe2e69b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Thu, 26 Nov 2020 18:41:58 +0100 Subject: [PATCH] fixed proxy mistyping --- actor/src/udsactor/http/clients_pool.py | 2 +- actor/src/udsactor/rest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actor/src/udsactor/http/clients_pool.py b/actor/src/udsactor/http/clients_pool.py index f64b9f41d..14e419065 100644 --- a/actor/src/udsactor/http/clients_pool.py +++ b/actor/src/udsactor/http/clients_pool.py @@ -53,7 +53,7 @@ class UDSActorClientPool: result: typing.List[typing.Any] = [] for clientUrl in self._clientUrl: try: - result.append(requests.post(clientUrl + '/' + method, data=json.dumps(data), verify=False, timeout=timeout, proxy=NO_PROXY)) + result.append(requests.post(clientUrl + '/' + method, data=json.dumps(data), verify=False, timeout=timeout, proxies=NO_PROXY)) except Exception as e: # If cannot request to a clientUrl, remove it from list logger.info('Could not connect with client %s: %s. Removed from registry.', e, clientUrl) diff --git a/actor/src/udsactor/rest.py b/actor/src/udsactor/rest.py index 957ac25f0..fb4a1e0d8 100644 --- a/actor/src/udsactor/rest.py +++ b/actor/src/udsactor/rest.py @@ -120,7 +120,7 @@ class UDSApi: # pylint: disable=too-few-public-methods headers=headers, verify=self._validateCert, timeout=TIMEOUT, - proxies=NO_PROXY if disableProxy else None # If disable proxy, force skip it + proxies=NO_PROXY if disableProxy else None # if not proxies wanted, enforce it ) if result.ok: