Update build_rule to ignore __env__, __sls__, order

The rules not created without these switches in the iptables command.
This commit is contained in:
c-cooperjones 2013-10-18 01:00:14 +01:00
parent 36e00080d4
commit a9604d7f44

View File

@ -81,7 +81,7 @@ def build_rule(table=None, chain=None, command=None, position='', full=None,
kwargs['jump'] = kwargs['target']
del kwargs['target']
for ignore in '__id__', 'fun', 'table', 'chain':
for ignore in '__id__', 'fun', 'table', 'chain','__env__','__sls__','order':
if ignore in kwargs:
del kwargs[ignore]