1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-09 03:22:43 +03:00

Only check for signed keys in proxycommand.

This commit is contained in:
Mariano Cano
2019-11-21 11:50:09 -08:00
committed by max furman
parent b90ffd5323
commit 835c7ca1b2
2 changed files with 16 additions and 1 deletions

View File

@@ -122,7 +122,7 @@ func doLoginIfNeeded(ctx *cli.Context, subject string) error {
}
// Do login flow if key is not in agent
if _, err := agent.GetSigner(subject, opts...); err != nil {
if exists, err := agent.HasKeys(opts...); err != nil || !exists || len(opts) == 0 {
flow, err := cautils.NewCertificateFlow(ctx)
if err != nil {
return err