]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix resource status in NEC Plugin
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 12 Aug 2013 05:10:40 +0000 (14:10 +0900)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 12 Aug 2013 14:12:21 +0000 (23:12 +0900)
commit04f689daa9df689287891d3505b89e3cfed8cd7a
tree14b1c5949afabaa2063e4a3c7aa09c70dc049964
parent6eae3007558f3887d32bb422c17c4679b7515d07
Fix resource status in NEC Plugin

This commit makes sure that the plugin exposes right status in a
response body, and does not overwrite ERROR status until another
operation to the backend has succeeded.

This commit also changes NEC Plguin to use neutron constants instead of
OperationalStatus defined in this plugin.

Fixes: bug #1211319
Change-Id: Ic61b8e1b9d3f6c2be9567dd5a4606aa6d439c564
neutron/plugins/nec/nec_plugin.py
neutron/tests/unit/nec/test_nec_plugin.py