Skip to content

Commit

Permalink
core, cmd: fix typo (#523)
Browse files Browse the repository at this point in the history
Signed-off-by: huanghaoyuanhhy <[email protected]>
  • Loading branch information
huanghaoyuanhhy authored Jan 24, 2025
1 parent 3b37724 commit 5d51687
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/backup_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func printParams(base *paramtable.BackupParams) {
yml.Milvus.TlsMode = base.ParseIntWithDefault("milvus.tlsMode", 0)
yml.Milvus.User = base.BaseTable.LoadWithDefault("milvus.user", "")
yml.Milvus.Password = base.BaseTable.LoadWithDefault("milvus.password", "")
yml.Milvus.CACertPath = base.BaseTable.LoadWithDefault("milvus.tlsCertPath", "")
yml.Milvus.CACertPath = base.BaseTable.LoadWithDefault("milvus.caCertPath", "")
yml.Milvus.ServerName = base.BaseTable.LoadWithDefault("milvus.serverName", "localhost")
yml.Milvus.mtlsCertPath = base.BaseTable.LoadWithDefault("milvus.mtlsCertPath", "")
yml.Milvus.mtlsKeyPath = base.BaseTable.LoadWithDefault("milvus.mtlsKeyPath", "")
Expand Down
6 changes: 3 additions & 3 deletions core/paramtable/base_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,9 @@ func (gp *BaseTable) loadMilvusConfig() {
_ = gp.Save("milvus.password", milvusPassword)
}

milvusTLSCertPath := os.Getenv("MILVUS_CA_CERT_PATH")
if milvusTLSCertPath != "" {
_ = gp.Save("milvus.caCertPath", milvusTLSCertPath)
milvusCACertPath := os.Getenv("MILVUS_CA_CERT_PATH")
if milvusCACertPath != "" {
_ = gp.Save("milvus.caCertPath", milvusCACertPath)
}

milvusServerName := os.Getenv("MILVUS_SERVER_NAME")
Expand Down

0 comments on commit 5d51687

Please sign in to comment.