Browse Source

cscli config show: print host/port/user/dbname when driver=pgx (fix #1866) (#1870)

mmetc 2 years ago
parent
commit
99513f64fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/crowdsec-cli/config.go

+ 1 - 1
cmd/crowdsec-cli/config.go

@@ -409,7 +409,7 @@ func NewConfigCmd() *cobra.Command {
 					switch csConfig.DbConfig.Type {
 					switch csConfig.DbConfig.Type {
 					case "sqlite":
 					case "sqlite":
 						fmt.Printf("      - Path                : %s\n", csConfig.DbConfig.DbPath)
 						fmt.Printf("      - Path                : %s\n", csConfig.DbConfig.DbPath)
-					case "mysql", "postgresql", "postgres":
+					default:
 						fmt.Printf("      - Host                : %s\n", csConfig.DbConfig.Host)
 						fmt.Printf("      - Host                : %s\n", csConfig.DbConfig.Host)
 						fmt.Printf("      - Port                : %d\n", csConfig.DbConfig.Port)
 						fmt.Printf("      - Port                : %d\n", csConfig.DbConfig.Port)
 						fmt.Printf("      - User                : %s\n", csConfig.DbConfig.User)
 						fmt.Printf("      - User                : %s\n", csConfig.DbConfig.User)