ssh exit code to debug
This commit is contained in:
parent
c704b08d5c
commit
c477cfabc6
|
@ -58,7 +58,7 @@ func (m *Manager) run(host string, client *ssh.Client, cmd string) (string, erro
|
||||||
}
|
}
|
||||||
err = session.Run(cmd)
|
err = session.Run(cmd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Log.Warnf("could not run %s on %s: %s", cmd, host, err)
|
log.Log.Debugf("could not run %s on %s: %s", cmd, host, err)
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
return buffer.String(), nil
|
return buffer.String(), nil
|
||||||
|
|
Loading…
Reference in New Issue