Swiftclient put bytes has no reset

Bug #1958288 reported by mathieu longtin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

In this line:
https://opendev.org/openstack/python-swiftclient/src/branch/master/swiftclient/client.py#L1999

Instead of:

   if isinstance(contents, str) or not contents:

It should be:

   if isinstance(contents, (six.text_type, six.binary_type)) or not contents:

The current implementation fails to retry on failure when submitting bytes instead of a string.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.