object list --delimiter returns empty strings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
New
|
Undecided
|
Unassigned |
Bug Description
I'm trying to use the `--delimiter /` option to get a list of subdirectories in a container.
Using python-swiftclient it works:
$ swift list backup-dev-tools --delimiter /
abc/
logs/
With the python-
$ openstack object list backup-dev-tools --delimiter /
+------+
| Name |
+------+
| |
| |
+------+
I believe the reason is that the format of the RESP BODY dictionary changes when you specify the --delimiter option.
With --delimiter:
RESP BODY: [{"subdir": "abc/"}, {"subdir": "logs/"}]
Without --delimiter:
RESP BODY: [{"hash": "d41d8cd98f00b2
I.e. it should show be using the 'subdir' key instead of the 'name' key, when specifying --delimiter.