diff --git a/pkg/utils/exec/exec.go b/pkg/utils/exec/exec.go index 4bb521421..6e27571fb 100644 --- a/pkg/utils/exec/exec.go +++ b/pkg/utils/exec/exec.go @@ -75,10 +75,6 @@ func Exec(commandDetails *PodDetails, clients clients.ClientSets, command []stri return "", cerrors.Error{ErrorCode: cerrors.ErrorTypeGeneric, Reason: fmt.Sprintf("failed to create a stderr and stdout stream, %s", err.Error())} } - if strings.TrimSpace(stderr.String()) != "" { - return "", cerrors.Error{ErrorCode: cerrors.ErrorTypeGeneric, Reason: stderr.String()} - } - return stdout.String(), nil }