From 7ab411f75fde0ddcea567f760e60bedac9a70a5c Mon Sep 17 00:00:00 2001 From: Thibault bui Koechlin Date: Thu, 18 Jun 2020 13:52:52 +0200 Subject: [PATCH] get rid of this --- pkg/csconfig/config.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/csconfig/config.go b/pkg/csconfig/config.go index 8ad00a1aa..1f6f3a9b3 100644 --- a/pkg/csconfig/config.go +++ b/pkg/csconfig/config.go @@ -36,7 +36,6 @@ type CrowdSec struct { Linter bool Prometheus bool HTTPListen string `yaml:"http_listen,omitempty"` - ValidatorMode string /*if present points to a specific config (for tests)*/ RestoreMode string DumpBuckets bool OutputConfig *outputs.OutputFactory `yaml:"plugin"` @@ -97,7 +96,6 @@ func (c *CrowdSec) GetOPT() error { daemonMode := flag.Bool("daemon", false, "Daemonize, go background, drop PID file, log to file") testMode := flag.Bool("t", false, "only test configs") prometheus := flag.Bool("prometheus-metrics", false, "expose http prometheus collector (see http_listen)") - validatorMode := flag.String("custom-config", "", "[dev] run a specific subset of configs parser:file.yaml,scenarios:file.yaml") restoreMode := flag.String("restore-state", "", "[dev] restore buckets state from json file") dumpMode := flag.Bool("dump-state", false, "[dev] Dump bucket state at the end of run.") @@ -142,9 +140,6 @@ func (c *CrowdSec) GetOPT() error { if *testMode { c.Linter = true } - if *validatorMode != "" { - c.ValidatorMode = *validatorMode - } /*overriden by cmdline*/ if *daemonMode { c.Daemonize = true