v1Client.update_image fails when image attribute value is not string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Alessandro Pilotti |
Bug Description
By running:
f = open(image_
I get the following exception:
TypeError: sequence item 0: expected string, long found
File:
..\Python27\
Line:
542
The issue can be solved by changing at line 542:
c.putheader(header, value)
with
c.putheader(header, str(value))
Changed in glance: | |
milestone: | folsom-3 → folsom-rc1 |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | folsom-rc1 → 2012.2 |
Good catch, do you want to propose a fix for this through Gerrit?