Fix getting shared flags for balance info command (#1905)

This commit is contained in:
Hork
2022-09-07 18:01:19 +08:00
committed by GitHub
parent 1b0e046c99
commit d355e80b18
+1 -1
View File
@@ -48,7 +48,7 @@ func executeBalancerInfo(cmd *base.Command, args []string) {
defer close()
client := routerService.NewRoutingServiceClient(conn)
r := &routerService.GetBalancerInfoRequest{Tag: args[0]}
r := &routerService.GetBalancerInfoRequest{Tag: cmd.Flag.Arg(0)}
resp, err := client.GetBalancerInfo(ctx, r)
if err != nil {
base.Fatalf("failed to get health information: %s", err)