From 259839c477b6ac10e15fb3238894011a0f8463fc Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Fri, 8 Jan 2021 14:25:33 +0100 Subject: [PATCH] mgr/telemetry: fix proxy usage This nautilus-only commit is not cherry-picked from master because it fixes an incomplete nautilus backport. Commit 5d7c79b079827dffdabf78bd18c2930cfed92286 mgr/telemetry: fix and document proxy usage targeting master was initially backported to nautilus by 21b00799948f0863e169d45415fcc5dfb0fac02d However, this initial backport omitted the "fix" part. Fixes: 21b00799948f0863e169d45415fcc5dfb0fac02d Signed-off-by: Nathan Cutler --- src/pybind/mgr/telemetry/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/telemetry/module.py b/src/pybind/mgr/telemetry/module.py index 305b59b3a8af..c21e23407b5b 100644 --- a/src/pybind/mgr/telemetry/module.py +++ b/src/pybind/mgr/telemetry/module.py @@ -694,7 +694,7 @@ class Module(MgrModule): proxies['http'] = self.proxy proxies['https'] = self.proxy try: - resp = requests.put(url=url, json=report) + resp = requests.put(url=url, json=report, proxies=proxies) resp.raise_for_status() except Exception as e: fail_reason = 'Failed to send %s to %s: %s' % (what, url, str(e)) -- 2.47.3