Fix logic error in iptables.append

This commit is contained in:
Joseph Hall 2013-12-26 06:55:51 -07:00
parent 2ce4870993
commit 2ebafd80eb

View File

@ -163,7 +163,7 @@ def append(name, **kwargs):
name,
command.strip())
return ret
if not __salt__['iptables.append'](kwargs['table'], kwargs['chain'], rule):
if __salt__['iptables.append'](kwargs['table'], kwargs['chain'], rule):
ret['changes'] = {'locale': name}
ret['result'] = True
ret['comment'] = 'Set iptables rule for {0} to: {1}'.format(