]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix incorrect int/tuple comparison during binary search
authorAngus Lees <gus@inodes.org>
Thu, 28 Aug 2014 04:39:52 +0000 (14:39 +1000)
committerAngus Lees <gus@inodes.org>
Wed, 29 Oct 2014 01:05:40 +0000 (12:05 +1100)
commit682f5a3effe544f0affabe384fcd3d4ee7d408f9
tree7af4cfcf8c86350ffb7158bb1878f4d2bf5a1220
parentc15c07d518c761689aec825515a9192624403e55
Fix incorrect int/tuple comparison during binary search

The code contains an incorrect int/tuple comparison during the binary
search, which completely breaks the "priority" feature.
(Apparently python2 thinks int < tuple is not an error and always True.)

Change-Id: Ic404b38eabc87b105c7c2443b6177071b26d97ce
Closes-Bug: #1386946
neutron/plugins/bigswitch/tests/test_server.py