Skip to content

Commit

Permalink
auth_command: using the struct literal object to remove the &{}
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcinil committed Jan 20, 2020
1 parent f5c6c75 commit fed0a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etcdctl/ctlv3/command/auth_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ func authStatusCommandFunc(cmd *cobra.Command, args []string) {
}

ctx, cancel := commandCtx(cmd)
status, err := mustClientFromCmd(cmd).Auth.AuthStatus(ctx)
result, err := mustClientFromCmd(cmd).Auth.AuthStatus(ctx)
cancel()
if err != nil {
ExitWithError(ExitError, err)
}

fmt.Println("Authentication Status: ", status)
fmt.Println("Authentication Status:", result.Status)
}

func newAuthEnableCommand() *cobra.Command {
Expand Down

0 comments on commit fed0a0f

Please sign in to comment.