neutron/neutron/agent
Angus Lees ea27c8a162 Purge use of "PRED and A or B" poor-mans-ternary
Since python2.6, python has a proper ternary construct "A if PRED else
B".  The older idiom "PRED and A or B" has a hidden trap - when A is
itself false, the result is (unexpectedly) B.

This change removes all cases of the older construct found using a
trivial git grep " and .* or " - except one case in oslo common
code (fixed in oslo upstream).

Change-Id: I24461f4328e188c8983ad574495e11e033ec5ba4
2014-11-08 00:17:12 +11:00
..
common Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
linux Purge use of "PRED and A or B" poor-mans-ternary 2014-11-08 00:17:12 +11:00
metadata Use RPC instead of neutron client in metadata agent 2014-10-28 15:52:37 +04:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
dhcp_agent.py Merge "Create DHCP port for IPv6 subnet" 2014-10-29 14:29:16 +00:00
firewall.py Add missing methods to NoopFirewallDriver 2014-09-28 22:16:57 +04:00
l2population_rpc.py l2population_rpc: docstring improvements 2014-10-21 08:57:41 +09:00
l3_agent.py Merge "Remove use_namespaces from RouterInfo Property" 2014-10-27 09:49:00 +00:00
l3_ha_agent.py Add HA support to the l3 agent 2014-09-14 20:34:06 +03:00
netns_cleanup_util.py Remove unused arg to config.setup_logging() 2014-09-05 12:05:17 +10:00
ovs_cleanup_util.py Remove unused arg to config.setup_logging() 2014-09-05 12:05:17 +10:00
rpc.py Remove redundant topic from rpc calls 2014-08-05 10:14:20 +00:00
securitygroups_rpc.py Reduce security group db calls to neutron server 2014-10-11 04:59:22 -05:00