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

This commit is contained in:
Hork 2022-09-07 11:01:19 +01:00 committed by GitHub
parent 1b0e046c99
commit d355e80b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)