mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
lint
This commit is contained in:
parent
65a5c29dc0
commit
89b4fbe2aa
2 changed files with 1 additions and 2 deletions
|
@ -25,7 +25,7 @@ func (cli *cliConfig) showKey(key string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
opts := []expr.Option{}
|
opts := []expr.Option{}
|
||||||
opts = append(opts, exprhelpers.GetExprOptions(map[string]interface{}{})...)
|
opts = append(opts, exprhelpers.GetExprOptions(map[string]any{})...)
|
||||||
opts = append(opts, expr.Env(Env{}))
|
opts = append(opts, expr.Env(Env{}))
|
||||||
|
|
||||||
program, err := expr.Compile(key, opts...)
|
program, err := expr.Compile(key, opts...)
|
||||||
|
|
|
@ -75,7 +75,6 @@ teardown() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "duplicate notification config" {
|
@test "duplicate notification config" {
|
||||||
CONFIG_DIR=$(dirname "$CONFIG_YAML")
|
|
||||||
# email_default has two configurations
|
# email_default has two configurations
|
||||||
rune -0 yq -i '.name="email_default"' "$CONFIG_DIR/notifications/http.yaml"
|
rune -0 yq -i '.name="email_default"' "$CONFIG_DIR/notifications/http.yaml"
|
||||||
# enable a notification, otherwise plugins are ignored
|
# enable a notification, otherwise plugins are ignored
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue