neutron/neutron/agent/linux
Cedric Brandily c9974b9269 Fix pylint unbalanced-tuple-unpacking warning
Pylint last version(1.4.1), at least, reports an
unbalanced-tuple-unpacking warning[1] in keepalived[2] module because
self.authentication is defined as an empty tuple in __init__ method and
unpacked in build_config method as if it was a 2-tuple.

self.authentication references an empty tuple (defined in __init__
method) or a 2-tuple (updated in set_authentication method). Such
warning is a false positive because the unpacking is only performed if
self.authentication is not evaluated to false which only appends if
self.authentication is a 2-tuple.

Defining self.authentication as None in __init__ avoids such warning
without disabling unbalanced-tuple-unpacking warning check.

[1]
W:252,12: Possible unbalanced tuple unpacking with sequence defined at
line 153: left side has 2 label(s), right side has 0 value(s)
(unbalanced-tuple-unpacking)

[2] neutron.agent.linux.keepalived

Change-Id: Ifcdf08e574ef44a65c6d121323cbe31d9af2f921
Closes-Bug: #1411865
2015-01-18 11:37:43 +00:00
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
async_process.py Add Process class helper to manage processes with namespace 2015-01-07 11:20:27 +01:00
daemon.py Do not run neutron-ns-metadata-proxy as root on L3 agent 2014-12-24 01:21:44 +01:00
dhcp.py Merge "Specify prefix length for IPv6 subnets" 2015-01-16 08:17:14 +00:00
external_process.py Fix race condition in ProcessMonitor 2014-12-11 09:05:16 +01:00
interface.py Merge "Remove ovs-vsctl call from OVSInterfaceDriver" 2014-12-04 23:19:44 +00:00
ip_lib.py Create arping helper in ip_lib 2015-01-15 05:43:10 +00:00
ip_link_support.py Enable pylint checks for "anomalous" string escapes 2014-12-23 14:53:02 +11:00
ipset_manager.py IpsetManager refactoring 2014-12-06 18:21:43 +01:00
iptables_comments.py Clarify misleading iptables comment 2015-01-15 07:36:46 -08:00
iptables_firewall.py Clarify misleading iptables comment 2015-01-15 07:36:46 -08:00
iptables_manager.py Refactor of floating ip processing in L3 Agent 2015-01-16 00:56:17 +00:00
keepalived.py Fix pylint unbalanced-tuple-unpacking warning 2015-01-18 11:37:43 +00:00
ovs_lib.py hacking: enable H238 (old style class declaration, use new style) 2015-01-12 23:46:11 +01:00
ovsdb_monitor.py Migrate to oslo.i18n 2014-11-26 22:19:24 +01:00
polling.py Raise NotImplementedError instead of NotImplemented 2014-08-13 10:54:07 +02:00
ra.py ipv6: set OtherConfig flag for DHCPv6 stateless subnets 2014-12-22 11:37:38 +01:00
utils.py Log iptables rules in a readable format 2015-01-13 16:46:57 -08:00