浏览代码

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)