mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
postgresql: Disable validation of connectionString field (#6397)
A bug concerning the validation of connectionString is found, however there is no solution to fix it for now, postgresql API doesn't help to do that hence disabling validation of that field.
This commit is contained in:
parent
3099af70a3
commit
5c13765168
@ -62,7 +62,6 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/lib/pq" // Register postgres driver
|
||||
"github.com/minio/minio/pkg/event"
|
||||
xnet "github.com/minio/minio/pkg/net"
|
||||
)
|
||||
@ -106,9 +105,8 @@ func (p PostgreSQLArgs) Validate() error {
|
||||
}
|
||||
|
||||
if p.ConnectionString != "" {
|
||||
if _, err := pq.ParseURL(p.ConnectionString); err != nil {
|
||||
return err
|
||||
}
|
||||
// No pq API doesn't help to validate connection string
|
||||
// prior connection, so no validation for now.
|
||||
} else {
|
||||
// Some fields need to be specified when ConnectionString is unspecified
|
||||
if p.Port == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user