Use a plain dictionary for Quotas.show method.

Registered by Tim Simpson

Right now the quotas "show" method returns a "Quota" object. The problem is, the user has to grab the dictionary from this object, so the usage looks like this:

quota = reddwarf_mgmt.quotas.show(tenant_id)
instance_count = quota._info['quotas]['instances']

In this case, the object gets in the way, so it would be nicer if a plain dictionary was returned.

This would also make show dovetail nicely with "Quotas.update" which uses a dictionary.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Approved
Assignee:
Tim Simpson
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Michael Basnight
Completed by
Michael Basnight

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/use-plain-dict-for-quotas-show,n,z

Addressed by: https://review.openstack.org/26633
    Use a plain dict for Quotas.show method.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.