فهرست منبع

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

mmetc 2 سال پیش
والد
کامیت
99513f64fd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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 {
 					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)