]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
lb-agent: fix get_interfaces_on_bridge returning None
authorDarragh O'Reilly <dara2002-openstack@yahoo.com>
Fri, 4 Apr 2014 16:46:30 +0000 (16:46 +0000)
committerDarragh O'Reilly <dara2002-openstack@yahoo.com>
Fri, 4 Apr 2014 17:02:29 +0000 (17:02 +0000)
commit9608aa0a2cf8ec8c2172e588bffdef03b7f00aa7
treedd245705f1221a41ead9682731886520e1ab4c0a
parentab1a387cfb5ffb46466ccc04f6321135b385d858
lb-agent: fix get_interfaces_on_bridge returning None

Change get_interfaces_on_bridge() to return [] instead of None
if the bridge is not found, as callers are expecting an iterator.

Change-Id: I359a2a0cf932c049f6891d4ba3eb8b9b23ab360d
Related-Bug: 1284311
neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py