diff --git a/etcdctl/ctlv3/command/auth_command.go b/etcdctl/ctlv3/command/auth_command.go index 398ba3c896ec..62ee152addd6 100644 --- a/etcdctl/ctlv3/command/auth_command.go +++ b/etcdctl/ctlv3/command/auth_command.go @@ -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 {