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:
parent
45fb199c9f
commit
dcb167c10d
@ -20,9 +20,6 @@ type PsqlConnInfo struct {
|
|||||||
Password string
|
Password string
|
||||||
Schema string
|
Schema string
|
||||||
}
|
}
|
||||||
|
|
||||||
var db *gorm.DB
|
|
||||||
|
|
||||||
func getPsqlConnInfo() (PsqlConnInfo, error) {
|
func getPsqlConnInfo() (PsqlConnInfo, error) {
|
||||||
var host string
|
var host string
|
||||||
if value := viper.GetString("PGSQL_HOST"); value != "" {
|
if value := viper.GetString("PGSQL_HOST"); value != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user