Merge pull request #12805 from tankywoo/develop

states.iptables support custom rule filename to save
This commit is contained in:
Joseph Hall 2014-05-15 07:24:44 -06:00
commit a3e750603d

View File

@ -348,7 +348,11 @@ def append(name, family='ipv4', **kwargs):
family)
if 'save' in kwargs:
if kwargs['save']:
__salt__['iptables.save'](filename=None, family=family)
if kwargs['save'] is not True:
filename = kwargs['save']
else:
filename = None
__salt__['iptables.save'](filename, family=family)
ret['comment'] = ('Set and Saved iptables rule for {0} to: '
'{1} for {2}'.format(name, command.strip(), family))
return ret