Skip to content

Commit

Permalink
Kube exec: remove command from error log (#4180)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavannd1 authored and Ilya Kislenko committed Oct 19, 2018
1 parent 993b685 commit 0bf175a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/kube/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"net/url"
"strings"

"github.com/pkg/errors"
"k8s.io/api/core/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/scheme"
Expand Down Expand Up @@ -71,10 +70,6 @@ func ExecWithOptions(kubeCli kubernetes.Interface, options ExecOptions) (string,

var stdout, stderr bytes.Buffer
err = execute("POST", req.URL(), config, options.Stdin, &stdout, &stderr, tty)
if err != nil {
err = errors.Wrapf(err, "Failed to execute %#v", options)
}

return strings.TrimSpace(stdout.String()), strings.TrimSpace(stderr.String()), err
}

Expand Down

0 comments on commit 0bf175a

Please sign in to comment.