Make rest clients return a single object

Registered by Sean Dague

The current rest clients all run in a pattern of return resp (int), body(dict) for any call. This ends up being somewhat awkwards, especially when calls only care about one or the other, and has led to a lot of _, or , _ in the code. We should have all the rest clients return a single object (could inherit from dict) which has the return code as an attribute.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Not
Drafter:
Sean Dague
Direction:
Needs approval
Assignee:
None
Definition:
Superseded
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Matthew Treinish

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/rest-clients-return-obj,n,z

Addressed by: https://review.openstack.org/81276
    add bp:rest-clients-return-obj

Addressed by: https://review.openstack.org/81347
    add basic rst sanity checker

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.