Fix PEP8 E713 - test for membership should be "not in"

This commit is contained in:
Pedro Algarvio 2014-06-06 10:11:53 +01:00
parent a64be7891d
commit c85b6de11a

View File

@ -593,10 +593,10 @@ def flush(name, family='ipv4', **kwargs):
if ignore in kwargs:
del kwargs[ignore]
if not 'table' in kwargs:
if 'table' not in kwargs:
kwargs['table'] = 'filter'
if not 'chain' in kwargs:
if 'chain' not in kwargs:
kwargs['chain'] = ''
if __opts__['test']:
ret['comment'] = 'iptables rules in {0} table {1} chain {2} family needs to be flushed'.format(