fix: command line variable.

This commit is contained in:
Bo-Yi Wu 2017-03-04 23:12:07 +08:00
parent 20a4793249
commit 6802b82a8d
2 changed files with 5 additions and 5 deletions

View File

@ -171,7 +171,7 @@ func run(c *cli.Context) error {
Proxy: defaultConfig{ Proxy: defaultConfig{
Key: c.String("proxy.ssh-key"), Key: c.String("proxy.ssh-key"),
KeyPath: c.String("proxy.key-path"), KeyPath: c.String("proxy.key-path"),
User: c.String("proxy.user"), User: c.String("proxy.username"),
Password: c.String("proxy.password"), Password: c.String("proxy.password"),
Server: c.String("proxy.host"), Server: c.String("proxy.host"),
Port: c.String("proxy.port"), Port: c.String("proxy.port"),

View File

@ -96,14 +96,14 @@ func (p Plugin) Exec() error {
p.log(host, "errors:", errStr) p.log(host, "errors:", errStr)
} }
if !isTimeout {
errChannel <- fmt.Errorf(commandTimeOut)
}
if err != nil { if err != nil {
errChannel <- err errChannel <- err
} }
if !isTimeout {
errChannel <- fmt.Errorf(commandTimeOut)
}
wg.Done() wg.Done()
}(host) }(host)
} }