Browse Source

Delete wrong argument from creating HTTP connection

HTTPConnection() doesn't take the argument 'context' while
HTTPSConnection() accepts it at creating a connection in an object
client. HTTP connection doesn't require an SSL context.

Change-Id: I51ffc8cd04fe90493e23b0f0ca9b0420c5a24cd5
changes/59/770659/1
Hironori Shiina 1 month ago
parent
commit
a811f44b55
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      tempest/lib/services/object_storage/object_client.py

+ 1
- 2
tempest/lib/services/object_storage/object_client.py View File

@ -166,7 +166,6 @@ class ObjectClient(rest_client.RestClient):
conn = httplib.HTTPSConnection(parsed_url.netloc,
context=context)
else:
conn = httplib.HTTPConnection(parsed_url.netloc,
context=context)
conn = httplib.HTTPConnection(parsed_url.netloc)
return conn

Loading…
Cancel
Save