file-like objects returned from GET and used to POST do not have the same interface
Bug #773562 reported by
Jay Pipes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Wishlist
|
Eoghan Glynn |
Bug Description
From Vishy's question:
"I'm a bit lost as to why the client returns an iterator for get but then expects a file like object for add. It would be great if both of these worked the same way. Then it would be possible to do something like:
from glance import client
remote = client.
local = client.
metadata, image = remote.
local.add_
There's no reason other than it's never been noticed until now :)
Changed in glance: | |
milestone: | essex-1 → essex-2 |
Changed in glance: | |
milestone: | essex-2 → essex-3 |
tags: | added: consistency low-hanging-fruit |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | essex-3 → 2012.1 |
To post a comment you must log in.
This should be addressed in early Essex, along with the 2.0 Images API changes...