Minor code refactoring

Noticed that `KeysDir` variable in ClientConfig structure was ignored.
This commit is contained in:
Ev Kontsevoy 2016-08-17 18:01:19 -07:00
parent 4ce8d5db0d
commit 3e1506d959

View file

@ -216,7 +216,7 @@ func NewClient(c *Config) (tc *TeleportClient, err error) {
tc = &TeleportClient{Config: *c}
// initialize the local agent (auth agent which uses local SSH keys signed by the CA):
tc.localAgent, err = NewLocalAgent("", c.Username)
tc.localAgent, err = NewLocalAgent(c.KeysDir, c.Username)
if err != nil {
return nil, trace.Wrap(err)
}