1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-29 03:18:27 +00:00

Update cmd/database.go

Co-authored-by: Huang Huang <mozillazg101@gmail.com>
This commit is contained in:
Luis Serra 2022-03-28 21:43:00 +01:00 committed by GitHub
parent 45fb199c9f
commit dcb167c10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,9 +20,6 @@ type PsqlConnInfo struct {
Password string
Schema string
}
var db *gorm.DB
func getPsqlConnInfo() (PsqlConnInfo, error) {
var host string
if value := viper.GetString("PGSQL_HOST"); value != "" {