mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
fixes saltstack/salt#65295 nftables module type does not ensure unique nft family values
(cherry picked from commit ab72e70697
)
This commit is contained in:
parent
9e16ab47e0
commit
b6dcf7ec18
2 changed files with 3 additions and 2 deletions
1
changelog/65295.fixed.md
Normal file
1
changelog/65295.fixed.md
Normal file
|
@ -0,0 +1 @@
|
|||
Fix typo in nftables module to ensure unique nft family values
|
|
@ -446,9 +446,9 @@ def save(filename=None, family="ipv4"):
|
|||
if _conf() and not filename:
|
||||
filename = _conf()
|
||||
|
||||
# Not a typo. Invert the dictionary twice to get unique values only.
|
||||
nft_families = {v: k for k, v in _NFTABLES_FAMILIES.items()}
|
||||
# Invert the dictionary twice to get unique values only.
|
||||
nft_families = {v: k for k, v in _NFTABLES_FAMILIES.items()}
|
||||
nft_families = {v: k for k, v in nft_families.items()}
|
||||
|
||||
rules = "#! nft -f\n"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue