jsonutils.to_primitive raises exception when it comes to file object
Bug #1028897 reported by
yong sheng gong
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo-incubator |
Invalid
|
Undecided
|
Unassigned |
Bug Description
.to_primitive():
elif hasattr(value, '__iter__'):
return to_primitive(
list(value) will raise exception when the value is a file object.
Changed in openstack-common: | |
status: | New → Incomplete |
affects: | openstack-common → oslo |
Changed in oslo: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
Do you have an example of when this occurs and causes a problem in openstack code?