diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index a48b9cf7bcd..43a87ee3b24 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -3550,16 +3550,10 @@ func IssueSSHCommandWithResult(cmd, provider string, node *v1.Node) (*SSHResult, } func IssueSSHCommand(cmd, provider string, node *v1.Node) error { - result, err := IssueSSHCommandWithResult(cmd, provider, node) - if result != nil { - LogSSHResult(*result) + _, err := IssueSSHCommandWithResult(cmd, provider, node) + if err != nil { + return err } - - if result.Code != 0 || err != nil { - return fmt.Errorf("failed running %q: %v (exit code %d)", - cmd, err, result.Code) - } - return nil }