Develop branch fix for #23950

This commit is contained in:
Patrick 2015-05-20 14:53:39 -06:00
parent b39e2d950d
commit dd13b99663

View File

@ -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(