]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensures port is not created when database exception occurs
authorGary Kotton <gkotton@redhat.com>
Mon, 8 Oct 2012 04:18:11 +0000 (04:18 +0000)
committerGary Kotton <gkotton@redhat.com>
Mon, 8 Oct 2012 04:31:42 +0000 (04:31 +0000)
commit94e486168e383600d9c5234c7b0c3874884aad1e
treea4f2e912e2fc8317590724dabc2a5ce015e83230
parentcd89dfac80a983dc00587f08401514210d73d47a
Ensures port is not created when database exception occurs

Fixes bug 1064261

The port creation code did not correctly treat a database error. That is,
if there was an exception the port would be created and an error returned
to the client.

Change-Id: I6cf36d1c641b46716afb16f228b8daa631099a5d
quantum/db/db_base_plugin_v2.py
quantum/tests/unit/test_db_plugin.py