fix: command line variable. (#58)

This commit is contained in:
Bo-Yi Wu 2017-03-04 23:13:55 +08:00 committed by GitHub
parent 20a4793249
commit 6921b0b786
2 changed files with 5 additions and 5 deletions

View File

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

View File

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