]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add check that list of agents is not empty in _get_enabled_agents
authorSergey Belous <sbelous@mirantis.com>
Thu, 3 Dec 2015 15:49:13 +0000 (18:49 +0300)
committerSergey Belous <sbelous@mirantis.com>
Wed, 16 Dec 2015 14:56:31 +0000 (17:56 +0300)
commit7d42ee769cdd4f4dc7b2ca1d85557bc471ce4b7e
tree10dd4025881c727805767a0711b9f2158445c2dd
parentab8adcf69380d1042c3440fe40b8a886fb855f45
Add check that list of agents is not empty in _get_enabled_agents

No reason to try get enabled_agents and send notification
if there are no any agents associated with network.

Closes-bug: #1522471
Change-Id: I111967415ce600253fc679837d03c9cd75f19656
neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py
neutron/tests/unit/api/rpc/agentnotifiers/test_dhcp_rpc_agent_api.py