mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #11104 from sandbender/mydevelop
Fresh fix commit for saltstack/salt repo issue #11096
This commit is contained in:
commit
c605f06e89
@ -28,9 +28,9 @@ def _iptables_cmd(family='ipv4'):
|
||||
Return correct command based on the family, eg. ipv4 or ipv6
|
||||
'''
|
||||
if family == 'ipv6':
|
||||
return 'ip6tables'
|
||||
return salt.utils.which('ip6tables')
|
||||
else:
|
||||
return 'iptables'
|
||||
return salt.utils.which('iptables')
|
||||
|
||||
|
||||
def _conf(family='ipv4'):
|
||||
|
@ -325,7 +325,7 @@ def insert(name, family='ipv4', **kwargs):
|
||||
if kwargs['save']:
|
||||
__salt__['iptables.save'](filename=None, family=family)
|
||||
ret['comment'] = ('Set and Saved iptables rule for {0} to: '
|
||||
'{1} for {2}'.format(name, command.strip(), family))
|
||||
'{1} for {2}').format(name, command.strip(), family)
|
||||
return ret
|
||||
else:
|
||||
ret['result'] = False
|
||||
|
Loading…
Reference in New Issue
Block a user