swiftclient.client.HTTPConnection not iterable, problems in function calls
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
while implementing against the swiftclient python lib i faced a problem:
http_connection = swiftclient.
swiftclient.
First, why is it required to give a url to put_container when i want to give a existing HTTPConnection object to it?
Second, and thats the bug (i would say), HTTPConnection is not iterable, therefore code sections like
if http_conn:
parsed, conn = http_conn
which occur in the swiftclient.
I think because of a lack of test-coverage (always a url is given) this does not show up during running the tests.
Is this a bug or is it a wrong usage of the swiftclient? If its a bug i can try to fix it.
Could you provide more details of the failure you see using:
if http_conn:
parsed, conn = http_conn