]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Return a tuple of None's instead of one None
authorKevin Benton <blak111@gmail.com>
Sun, 6 Jul 2014 07:00:23 +0000 (00:00 -0700)
committerKevin Benton <blak111@gmail.com>
Thu, 17 Jul 2014 03:45:05 +0000 (20:45 -0700)
commita84a8a5d83f545d0c00b7a83ad91b52dc31c1194
treef223d9b0dcd5d0da792da9221578fbc3295c0999
parentfb6e0653acfba9654c9119427ada0ad6c7211813
Return a tuple of None's instead of one None

The expected return value of _commit_port_binding is something that
can be unpacked into two values. This changes the condition where a
concurrent delete was detected to return a 2-tuple of None's
instead of a bare None to prevent an iterable error.

Closes-Bug: #1342880
Change-Id: I9d3a51eab33819ffda6a65a00c3b5d1006a3577e
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/test_ml2_plugin.py