forked from TrueCloudLab/s3-tests
boto3: use getboolean() for is_secure
Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
e89b53f0c7
commit
774d40d114
2 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ def setup():
|
||||||
# vars from the DEFAULT section
|
# vars from the DEFAULT section
|
||||||
config.default_host = defaults.get("host")
|
config.default_host = defaults.get("host")
|
||||||
config.default_port = int(defaults.get("port"))
|
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
|
# vars from the main section
|
||||||
config.main_access_key = cfg.get('s3 main',"access_key")
|
config.main_access_key = cfg.get('s3 main',"access_key")
|
||||||
|
|
|
@ -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)
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
if(is_secure == True):
|
if is_secure:
|
||||||
s = ssl.wrap_socket(s);
|
s = ssl.wrap_socket(s);
|
||||||
s.settimeout(5)
|
s.settimeout(5)
|
||||||
s.connect((host, port))
|
s.connect((host, port))
|
||||||
|
|
Loading…
Reference in a new issue