Skip to content

Commit

Permalink
tsh db connect do not respect TELEPORT_HOME (#9226)
Browse files Browse the repository at this point in the history
Fix the issue where `tsh db connect` looks for home directory in `~/.tsh` even when TELEPORT_HOME environment variable is set.
  • Loading branch information
jakule authored Dec 6, 2021
1 parent dff0d32 commit e938201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/tsh/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func onDatabaseConnect(cf *CLIConf) error {
if err != nil {
return trace.Wrap(err)
}
profile, err := client.StatusCurrent("", cf.Proxy)
profile, err := client.StatusCurrent(cf.HomePath, cf.Proxy)
if err != nil {
return trace.Wrap(err)
}
Expand Down

0 comments on commit e938201

Please sign in to comment.