mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-22 08:08:07 +00:00
chore(message): fix wrong PGSQL_DBNAME error message (#1128)
This commit is contained in:
parent
be157a8a5a
commit
70a544e916
@ -38,7 +38,7 @@ func getPsqlConnInfo() (PsqlConnInfo, error) {
|
|||||||
if value := viper.GetString("PGSQL_DBNAME"); value != "" {
|
if value := viper.GetString("PGSQL_DBNAME"); value != "" {
|
||||||
dbName = value
|
dbName = value
|
||||||
} else {
|
} else {
|
||||||
return PsqlConnInfo{}, fmt.Errorf("%s_PGSQL_USER env var is required", envVarsPrefix)
|
return PsqlConnInfo{}, fmt.Errorf("%s_PGSQL_DBNAME env var is required", envVarsPrefix)
|
||||||
}
|
}
|
||||||
|
|
||||||
var sslMode string
|
var sslMode string
|
||||||
|
Loading…
Reference in New Issue
Block a user