You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of extending the cmd with itself (["family", cmd, ipset_family]), it should only be extended by the family parameter and the ipset_family parameter.
Removing the superfluous cmd fixes the command:
----------
ID: ssh_blacklist
Function: ipset.set_present
Name: fail2ban-ssh-global
Result: True
Comment: ipset set fail2ban-ssh-global created successfully for ipv4
Started: 20:24:49.040701
Duration: 23.402 ms
Changes:
----------
locale:
fail2ban-ssh-global
I would write a PR to fix this problem but for a PR to be merged tests are required and I have no idea how I would test for such a kind of error.
/cc: @s0undt3ch as the original author of the regression change.
The text was updated successfully, but these errors were encountered:
ixs
changed the title
ipset module new_set() function broken
ipset module new_set() function broken: Syntax error: unknown inet family
Dec 6, 2022
It should be easy to add test coverage for this issue using the tests I added as inspiration, if you're wiling to add a PR. I'm willing to help push the PR through.
It does look like the ipset module has been broken for quite a while in a way, that was not obvious before.
I have a state that has been running fine on CentOS7 in the past but is now broken since the 3005 release.
ipset will report the following error:
Do note the
[...]
field in the comment.This is due to an error in
salt/salt/modules/ipset.py
Line 331 in 5b18e86
Instead of extending the
cmd
with itself (["family", cmd, ipset_family]
), it should only be extended by the family parameter and the ipset_family parameter.Removing the superfluous cmd fixes the command:
The error was introduced in 0e46c14
I would write a PR to fix this problem but for a PR to be merged tests are required and I have no idea how I would test for such a kind of error.
/cc: @s0undt3ch as the original author of the regression change.
The text was updated successfully, but these errors were encountered: