swift delete_after metadata should be type str not int
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstacksdk |
In Progress
|
Undecided
|
Jake Yip |
Bug Description
When deleting using the `delete_after` method [1], an error is thrown
requests.
This can be replicated by doing the following:
1. Assume you have a `temp` container with a `trash` object
$ openstack object list temp
+-----------+
| Name |
+-----------+
| trash |
+-----------+
2. Delete using the following code
import openstack
conn = openstack.
sess = conn.session
obj = conn.object_
obj.delete_after = 60
obj = conn.object_
3. This throws an error with the following stacktrace
Traceback (most recent call last):
File "/home/
resp = self.session.
File "/home/
prep = self.prepare_
File "/home/
p.prepare(
File "/home/
self.
File "/home/
check_
File "/home/
raise InvalidHeader(
requests.
Changed in openstacksdk: | |
assignee: | nobody → Jake Yip (waipengyip) |
Fix proposed to branch: master /review. opendev. org/c/openstack /openstacksdk/ +/924301
Review: https:/