1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-21 15:48:06 +00:00

chore(message): fix wrong PGSQL_DBNAME error message (#1128)

This commit is contained in:
Luis Serra 2022-03-28 15:40:04 +01:00 committed by GitHub
parent be157a8a5a
commit 70a544e916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ func getPsqlConnInfo() (PsqlConnInfo, error) {
if value := viper.GetString("PGSQL_DBNAME"); value != "" {
dbName = value
} 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