]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add tenant_id to flavor service profiles attributes
authorJames Arendt <james.arendt@hp.com>
Wed, 26 Aug 2015 23:53:24 +0000 (16:53 -0700)
committerArmando Migliaccio <armamig@gmail.com>
Wed, 2 Sep 2015 16:44:11 +0000 (16:44 +0000)
commitdb4ea4517886741c2bd3e15e39bee0ecbd1356ae
treec331db7123a4a16e1643c73996326ed1faf7b376
parent381cac9139096bfef49952f3fd67e19451160b61
Add tenant_id to flavor service profiles attributes

Neutron v2 base.py auto populates a 'tenant_id' attribute on
calls if the attribute is not passed.  This causes a POST
to create a flavor service binding to fail when verifying
attributes with:
Unrecognized attribute(s) 'tenant_id'

Solution is to add tenant_id as expected attribute in the
attribute map as done in other sub resources like QOS.

Fix unit test for non-keystone case.

Change-Id: Ic2bd1271f297fc10b49304ffd5fe617637e3d8f4
Closes-Bug: 1489197
neutron/extensions/flavors.py
neutron/tests/unit/extensions/test_flavors.py