Glance RPC client fails when the returned value is a integer
Bug #1204668 reported by
John Bresnahan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Flavio Percoco |
Bug Description
I am trying to add a new method to the database module that returns an int. When I access that method via RPC I get the following error:
File "/home/
return self.do_
File "/home/
if self.raise_exc and (content and '_error' in content):
TypeError: argument of type 'int' is not iterable
This happens because line:
https:/
assumes that the result is a string and it searches for a substring to determine error.
Changed in glance: | |
assignee: | nobody → Flavio Percoco (flaper87) |
status: | New → Confirmed |
Changed in glance: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | havana-3 → 2013.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/38606
Review: https:/