Skip to content
Snippets Groups Projects
Verified Commit 5f7f62aa authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

fix db getpassword with password file

parent aa1f7c4f
No related branches found
No related tags found
No related merge requests found
Pipeline #323429 failed
......@@ -362,11 +362,8 @@ type ServiceOperatorConf struct {
// GetPassword returns the password for this database config. If necessary it reads it from the password file.
func (conf *DBConf) GetPassword() string {
if conf.Password != "" {
return conf.Password
}
if conf.PasswordFile == "" {
return ""
return conf.Password
}
content, err := os.ReadFile(conf.PasswordFile)
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment