]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make Neutron service flavor save service_type
authorJames Arendt <james.arendt@hp.com>
Fri, 28 Aug 2015 23:33:44 +0000 (16:33 -0700)
committerArmando Migliaccio <armamig@gmail.com>
Wed, 2 Sep 2015 16:44:43 +0000 (16:44 +0000)
commitc43cc3eb20101b2d2b19344690fed9892383621b
tree9d1220f1c7b2b0b3c2e95af010ba3afc19bcd8a2
parent2923028b35f934e5d1cf48612bdb66d581cc1d60
Make Neutron service flavor save service_type

While the service_type exists in the resource attributes and as
a database field for a Flavor, the creation dictionary did not
pass the value so the service_type was not being persisted
in the database nor returned.

Enhanced unit test to show problem.  Test fails on old code
to save or return the input service_type.

Change-Id: I4dba287f5972ecebd193d65e7f542dd0a65f055b
Closes-Bug: 1490063
neutron/db/flavors_db.py
neutron/tests/unit/extensions/test_flavors.py