]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Need to pass port['port'] to _get_tenant_id_for_create()
authorAaron Rosen <arosen@nicira.com>
Mon, 18 Feb 2013 02:49:40 +0000 (18:49 -0800)
committerAaron Rosen <arosen@nicira.com>
Mon, 18 Feb 2013 02:59:35 +0000 (18:59 -0800)
commit244339d8a961d2360417c5c319d87d6c75d78357
treebb8eafb90711563e957c6afebe212aa85a464e7f
parentcc72d0ad113daf2120c3686ca89f114256fce023
Need to pass port['port'] to _get_tenant_id_for_create()

This change set I9ac44a8e moved this logic out of the transaction
which caused this bug. Unit tests did not catch this because
this error is caused on NVP since the tenant_id is passed in as a tag
and this change resulted in the tenant_id becoming None which is not
an allowed tag value. Will improve error handling and edge cases like
this to fake_nvpapiclient in different commit.

Change-Id: Ib0eaab1f389de98b335f58e9215981adbbf9e2ef
quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py