From 62a6c535541801ab41f3da8d604228667b0837fc Mon Sep 17 00:00:00 2001 From: Mathias Muench <mathias.muench@tngtech.com> Date: Mon, 12 Nov 2018 20:47:03 +0100 Subject: [PATCH] Overwrite for no proxy is _none_ according to man page. --- Makefile | 2 +- s3iam.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 079c04c..01f7190 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = yum-plugin-s3-iam -VERSION = 1.2.2 +VERSION = 1.2.2p2 RELEASE = 1 ARCH = noarch diff --git a/s3iam.py b/s3iam.py index 169cdf6..f9fa4bb 100755 --- a/s3iam.py +++ b/s3iam.py @@ -167,7 +167,7 @@ def __init__(self, repoid, repo): proxy_config['https'] = os.environ['https_proxy'] if 'http_proxy' in os.environ: proxy_config['http'] = os.environ['http_proxy'] - if repo.proxy and repo.proxy != '__none__': + if repo.proxy and repo.proxy != '_none_': proxy_config['https'] = proxy_config['http'] = repo.proxy if proxy_config: proxy = urllib2.ProxyHandler(proxy_config)