Merge pull request #11849 from zeezooz/iptables_save_family

Use family when saving iptables rule.
This commit is contained in:
Joseph Hall 2014-04-08 09:08:23 -06:00
commit 92435462a9

View File

@ -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):