From c85b6de11aeee6a4fa3e58fc732e1e7d1500ca3d Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 6 Jun 2014 10:11:53 +0100 Subject: [PATCH] Fix PEP8 E713 - test for membership should be "not in" --- salt/states/iptables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/states/iptables.py b/salt/states/iptables.py index f6461cb85a..4e515b3718 100644 --- a/salt/states/iptables.py +++ b/salt/states/iptables.py @@ -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(