mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Develop branch fix for #23950
This commit is contained in:
parent
b39e2d950d
commit
dd13b99663
@ -735,6 +735,8 @@ def insert(table='filter', chain=None, position=None, rule=None, family='ipv4'):
|
||||
rules = get_rules(family='ipv4')
|
||||
size = len(rules[table][chain]['rules'])
|
||||
position = (size + position) + 1
|
||||
if position is 0:
|
||||
position = 1
|
||||
|
||||
wait = '--wait' if _has_option('--wait', family) else ''
|
||||
cmd = '{0} {1} -t {2} -I {3} {4} {5}'.format(
|
||||
|
Loading…
Reference in New Issue
Block a user