mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
Merge pull request #1146 from clnperez/log-ssh-err-output
If there was an SSH error, log the output
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user