diff --git a/cmd/crowdsec-cli/cliconfig/show.go b/cmd/crowdsec-cli/cliconfig/show.go index a9cf96cbb..b0e6fa35b 100644 --- a/cmd/crowdsec-cli/cliconfig/show.go +++ b/cmd/crowdsec-cli/cliconfig/show.go @@ -25,7 +25,7 @@ func (cli *cliConfig) showKey(key string) error { } 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{})) program, err := expr.Compile(key, opts...) diff --git a/test/bats/72_plugin_badconfig.bats b/test/bats/72_plugin_badconfig.bats index 4f0294b23..ab8ceecc5 100644 --- a/test/bats/72_plugin_badconfig.bats +++ b/test/bats/72_plugin_badconfig.bats @@ -75,7 +75,6 @@ teardown() { } @test "duplicate notification config" { - CONFIG_DIR=$(dirname "$CONFIG_YAML") # email_default has two configurations rune -0 yq -i '.name="email_default"' "$CONFIG_DIR/notifications/http.yaml" # enable a notification, otherwise plugins are ignored