LogResult if there is an error

This commit is contained in:
John Belamaric 2020-02-07 09:36:02 -08:00
parent 64ba0bf3d6
commit ba38816d42

View File

@ -160,6 +160,9 @@ func (h *hostExecutor) exec(cmd string, node *v1.Node) (Result, error) {
// the command exits non-zero.
func (h *hostExecutor) IssueCommandWithResult(cmd string, node *v1.Node) (string, error) {
result, err := h.exec(cmd, node)
if err != nil {
LogResult(result)
}
return result.Stdout, err
}