Skip to content

Commit

Permalink
fix: kbcli command has redundant output information (#5585)
Browse files Browse the repository at this point in the history
Co-authored-by: dereckchen <[email protected]>
  • Loading branch information
1aal and derecknowayback authored Oct 24, 2023
1 parent ab5ae31 commit ec41b69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lorry/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (

corev1 "k8s.io/api/core/v1"

probe2 "github.com/apecloud/kubeblocks/lorry/middleware/probe"
. "github.com/apecloud/kubeblocks/lorry/util"
"github.com/apecloud/kubeblocks/pkg/cli/exec"
intctrlutil "github.com/apecloud/kubeblocks/pkg/controllerutil"
Expand Down Expand Up @@ -389,7 +388,10 @@ func parseResponse(data []byte, operation string, charType string) (SQLChannelRe
}

func getBodyWithOperation(operation string) ([]byte, error) {
meta := probe2.RequestMeta{
meta := struct {
Operation string `json:"operation"`
Metadata map[string]string `json:"metadata"`
}{
Operation: operation,
Metadata: map[string]string{},
}
Expand Down

0 comments on commit ec41b69

Please sign in to comment.