"swift list -l -d /" doesn't work with faux directories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Fix Released
|
Undecided
|
Pete Zaitcev |
Bug Description
I ran "swift list -l -d / some_container" and the JSON includes both:
[...
{
"hash": "d41d8cd98f00b2
"bytes": 0,
"name": "include",
}, {
"subdir": "include/"
},
...
]
And the swift CLI errors out with:
Traceback (most recent call last):
File "/Users/
sys.
File "/Users/
globals(
File "/Users/
total_bytes += item_bytes
I'm guessing that the "long listing" loop isn't robust to list entries that only have the "subdir" key...
description: | updated |
summary: |
- "swift list -l -d /" doesn't work with faux directories + "swift list -l -d /" doesn't work |
summary: |
- "swift list -l -d /" doesn't work + "swift list -l -d /" doesn't work with faux directories |
Changed in python-swiftclient: | |
assignee: | nobody → Pete Zaitcev (zaitcev) |
Changed in python-swiftclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/154648
Review: https:/