Merge pull request #1146 from clnperez/log-ssh-err-output

If there was an SSH error, log the output
This commit is contained in:
Evan Hazlett 2015-05-11 09:33:03 -04:00
commit b3d39ca81d
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ func RunSSHCommandFromDriver(d Driver, command string) (ssh.Output, error) {
return output, err
}
return client.Run(command)
output, err = client.Run(command)
log.Debug(fmt.Sprintf("SSH cmd err, output: %v: %s", err, output))
return output, err
}
func sshAvailableFunc(d Driver) func() bool {