]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improve checking of return values for functions in linuxbridge agent plugin
authorsadasu <sadasu@cisco.com>
Thu, 25 Apr 2013 20:05:22 +0000 (16:05 -0400)
committersadasu <sadasu@cisco.com>
Tue, 7 May 2013 17:31:19 +0000 (13:31 -0400)
commitfa69228606ff42233a3f241a455157e675d398df
tree3ad361f9db450703fd2ef8f0fadfea44c29a6c4f
parentf94126739a48993efaf1d1439dcd3dadb0c69742
Improve checking of return values for functions in linuxbridge agent plugin

Fixes bug 1167780

Changed return values for some ensure_* functions to make them more consistent.
Now all ensure_* functions return None on failure and return the entity that was
created within the function when successful. Made changes to the unit tests to
reflect the changed return values.

Change-Id: Ib015ee7cee50bae5d91a4e109e7381519c1e14f7
quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py
quantum/tests/unit/linuxbridge/test_lb_quantum_agent.py