From 99513f64fd0bbaef291f36d40b275bfc71c97f78 Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Thu, 17 Nov 2022 12:07:37 +0100 Subject: [PATCH] cscli config show: print host/port/user/dbname when driver=pgx (fix #1866) (#1870) --- cmd/crowdsec-cli/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/crowdsec-cli/config.go b/cmd/crowdsec-cli/config.go index 063df21de..8f67fd081 100644 --- a/cmd/crowdsec-cli/config.go +++ b/cmd/crowdsec-cli/config.go @@ -409,7 +409,7 @@ func NewConfigCmd() *cobra.Command { switch csConfig.DbConfig.Type { case "sqlite": fmt.Printf(" - Path : %s\n", csConfig.DbConfig.DbPath) - case "mysql", "postgresql", "postgres": + default: fmt.Printf(" - Host : %s\n", csConfig.DbConfig.Host) fmt.Printf(" - Port : %d\n", csConfig.DbConfig.Port) fmt.Printf(" - User : %s\n", csConfig.DbConfig.User)