diff --git a/cdist/conf/type/__ipset/gencode-remote b/cdist/conf/type/__ipset/gencode-remote index f3ec8c2a..1cd0c5ef 100755 --- a/cdist/conf/type/__ipset/gencode-remote +++ b/cdist/conf/type/__ipset/gencode-remote @@ -55,7 +55,7 @@ if [ "$state_should" = "present" ]; then if [ -f "$p/add" ]; then while read -r value; do if ! grep -q "$value" "$e/content"; then - echo "ipset add $name $value" + echo "ipset -! add $name $value" needToSave=1 fi done < "$p/add" @@ -64,7 +64,7 @@ if [ "$state_should" = "present" ]; then if [ -f "$p/del" ]; then while read -r value; do if grep -q "$value" "$e/content"; then - echo "ipset del $name $value" + echo "ipset -! del $name $value" needToSave=1 fi done < "$p/del"