Skip to content

Commit

Permalink
prototype fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fspmarshall committed Feb 12, 2020
1 parent 3fb2b6e commit fe55219
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tool/tsh/tsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,17 +461,17 @@ func onLogin(cf *CLIConf) {

// -i flag specified? save the retreived cert into an identity file
makeIdentityFile := (cf.IdentityFileOut != "")
activateKey := !makeIdentityFile
//activateKey := !makeIdentityFile

key, err = tc.Login(cf.Context, activateKey)
key, err = tc.Login(cf.Context, true)
if err != nil {
utils.FatalError(err)
}

if makeIdentityFile {
if err := setupNoninteractiveClient(tc, key); err != nil {
utils.FatalError(err)
}
//if err := setupNoninteractiveClient(tc, key); err != nil {
// utils.FatalError(err)
//}
authorities, err := tc.GetTrustedCA(cf.Context, key.ClusterName)
if err != nil {
utils.FatalError(err)
Expand Down

0 comments on commit fe55219

Please sign in to comment.