From 774d40d1147802efdea407f07576993582e4b179 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 27 Feb 2019 11:40:07 -0500 Subject: [PATCH] boto3: use getboolean() for is_secure Signed-off-by: Casey Bodley --- s3tests_boto3/functional/__init__.py | 2 +- s3tests_boto3/functional/test_s3.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/s3tests_boto3/functional/__init__.py b/s3tests_boto3/functional/__init__.py index 9b5abf9..33abfa6 100644 --- a/s3tests_boto3/functional/__init__.py +++ b/s3tests_boto3/functional/__init__.py @@ -155,7 +155,7 @@ def setup(): # vars from the DEFAULT section config.default_host = defaults.get("host") config.default_port = int(defaults.get("port")) - config.default_is_secure = defaults.get("is_secure") + config.default_is_secure = cfg.getboolean('DEFAULT', "is_secure") # vars from the main section config.main_access_key = cfg.get('s3 main',"access_key") diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 7ba4545..13fb300 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -6189,7 +6189,7 @@ def _simple_http_req_100_cont(host, port, is_secure, method, resource): ) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - if(is_secure == True): + if is_secure: s = ssl.wrap_socket(s); s.settimeout(5) s.connect((host, port))