From d355e80b182ce505f3cc037b52181d7ec9ee4529 Mon Sep 17 00:00:00 2001 From: Hork Date: Wed, 7 Sep 2022 11:01:19 +0100 Subject: [PATCH] Fix getting shared flags for balance info command (#1905) --- main/commands/all/api/balancer_info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/commands/all/api/balancer_info.go b/main/commands/all/api/balancer_info.go index 927ea7661..9b4d08fd5 100644 --- a/main/commands/all/api/balancer_info.go +++ b/main/commands/all/api/balancer_info.go @@ -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)