Flavor ID returned as string instead of integer

Bug #1165077 reported by Bartosz Kratochwil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Undecided
Riddhi

Bug Description

Hi,

There's inconsistency in API when it comes to Flavor -> ID. Most often ID is returned as Integer value, there are however places, where ID is returned as a string (example here: https://gist.github.com/Gorah/5317474)

Those places are:
Create Instance (POST /instances) response
List Instances (GET /instances) response
List database instance details (GET /instances/{instance_id}) response

Riddhi (ridhi-j-shah)
Changed in reddwarf:
assignee: nobody → Riddhi (ridhi-j-shah)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to reddwarf (master)

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

Changed in reddwarf:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to reddwarf (master)

Reviewed: https://review.openstack.org/31851
Committed: http://github.com/stackforge/reddwarf/commit/b93ea02cf9de6a9b206d4116f6ba7c243001e775
Submitter: Jenkins
Branch: master

commit b93ea02cf9de6a9b206d4116f6ba7c243001e775
Author: Riddhi Shah <email address hidden>
Date: Wed Jun 5 12:07:40 2013 -0500

    Integer Flavor Ids

    Changed the flavor id type in the instances schema to an Integer in a patch.
    Made changes to the test code. XML attributes are strings so made changes in code to handle that.

    Fixes Bug #1165077

    Change-Id: I6272c4cf9d22a6090f41b41a66e52506068532cc

Changed in reddwarf:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: havana-2 → 2013.2
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.