Skip to content

Commit

Permalink
Sync from server repo (22ae4720984)
Browse files Browse the repository at this point in the history
  • Loading branch information
releng committed Oct 31, 2024
1 parent b8f2c92 commit ea9621c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions commands/cmd_create_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ func (c *CmdCreateDB) validateParse(logger vlog.Printer) error {
return err
}

if !c.usePassword() {
err = c.getCertFilesFromCertPaths(&c.createDBOptions.DatabaseOptions)
if err != nil {
return err
}
// for creating a database, db password is mandatory input
// we need to read certs for connecting to node management agent
err = c.getCertFilesFromCertPaths(&c.createDBOptions.DatabaseOptions)
if err != nil {
return err
}

err = c.setDBPassword(&c.createDBOptions.DatabaseOptions)
Expand Down

0 comments on commit ea9621c

Please sign in to comment.