mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix PEP8 E713 - test for membership should be "not in"
This commit is contained in:
parent
a64be7891d
commit
c85b6de11a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user