Cue

List Clusters API should wrap response with 'clusters'

Bug #1399501 reported by Vipul Sabhaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cue
Fix Released
High
Davide Agnello

Bug Description

The list clusters API /v1/clusters doesn't return a wrapped response. It returns a list without an outer attribute 'clusters'

A sample response currently is like this:

[{u'status': u'BUILDING', u'updated': u'2014-12-05T01:21:06.844881', u'name': u'sample_cluster', u'created': u'2014-12-05T01:21:06.844710', u'nic': u'3dc26c0b-03f2-4d2e-ae87-c02d7f33c788', u'volume_size': 10, u'cluster_id': u'd2034c8d-8dae-4cd4-97b3-23afbe40ed0a', u'nodes': []}]

this should be like:

{
    "clusters": [
                    {u'status': u'BUILDING', u'updated': u'2014-12-05T01:21:06.844881', u'name': u'sample_cluster', u'created': u'2014-12-05T01:21:06.844710', u'nic': u'3dc26c0b-03f2-4d2e-ae87-c02d7f33c788', u'volume_size': 10, u'cluster_id': u'd2034c8d-8dae-4cd4-97b3-23afbe40ed0a', u'nodes': []}
     ]
}

Vipul Sabhaya (vipuls)
Changed in cue:
importance: Undecided → High
assignee: nobody → Davide Agnello (dagnello)
Revision history for this message
Davide Agnello (dagnello) wrote :

Looking into this fix now.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cue (master)

Fix proposed to branch: master
Review: https://review.openstack.org/148775

Changed in cue:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cue (master)

Change abandoned by Davide Agnello (<email address hidden>) on branch: master
Review: https://review.openstack.org/148775
Reason: new review for this change:
https://review.openstack.org/#/c/152364/

Changed in cue:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.