From 71f351f156dc71f804c50094a21fe77d962c2530 Mon Sep 17 00:00:00 2001 From: Heiss <52699794+Heiss@users.noreply.github.com> Date: Sat, 10 Aug 2019 11:14:51 +0200 Subject: [PATCH] requests should respect no_proxy env variable (#4867) If you want to specify a no_proxy variable in your dockerfile or docker-compose.yml, then this little fix respects the variable in get-requests. Otherwise the proxies could break your docker namespace lookup. (cherry picked from commit 648f0c827c9173d42a9f35e2c1da8d171fbe5dd2) --- dashboard/django/collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/django/collector.py b/dashboard/django/collector.py index 22974e3e49d..5bce4efecd2 100755 --- a/dashboard/django/collector.py +++ b/dashboard/django/collector.py @@ -461,7 +461,7 @@ if __name__ == "__main__": logger.info(http_headers) global http_proxyes - http_proxyes = {} + http_proxyes = { "no_proxy": os.getenv("NO_PROXY", "") } if args.proxy: http_proxyes['http'] = args.proxy http_proxyes['https'] = args.proxy -- GitLab