mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #11849 from zeezooz/iptables_save_family
Use family when saving iptables rule.
This commit is contained in:
commit
92435462a9
@ -383,7 +383,7 @@ def save(filename=None, family='ipv4'):
|
||||
salt '*' iptables.save /etc/sysconfig/iptables family=ipv6
|
||||
'''
|
||||
if _conf() and not filename:
|
||||
filename = _conf()
|
||||
filename = _conf(family)
|
||||
|
||||
parent_dir = os.path.dirname(filename)
|
||||
if not os.path.isdir(parent_dir):
|
||||
|
Loading…
Reference in New Issue
Block a user