diff --git a/etcdctl/ctlv3/command/printer.go b/etcdctl/ctlv3/command/printer.go index 7f5e38c22..97aef54f8 100644 --- a/etcdctl/ctlv3/command/printer.go +++ b/etcdctl/ctlv3/command/printer.go @@ -233,11 +233,12 @@ func makeEndpointStatusTable(statusList []epStatus) (hdr []string, rows [][]stri } func makeEndpointHashKVTable(hashList []epHashKV) (hdr []string, rows [][]string) { - hdr = []string{"endpoint", "hash"} + hdr = []string{"endpoint", "hash", "revision"} for _, h := range hashList { rows = append(rows, []string{ h.Ep, fmt.Sprint(h.Resp.Hash), + fmt.Sprint(h.Resp.HashRevision), }) } return hdr, rows diff --git a/etcdctl/ctlv3/command/printer_fields.go b/etcdctl/ctlv3/command/printer_fields.go index df181f7e0..5e7d92584 100644 --- a/etcdctl/ctlv3/command/printer_fields.go +++ b/etcdctl/ctlv3/command/printer_fields.go @@ -212,6 +212,7 @@ func (p *fieldsPrinter) EndpointHashKV(hs []epHashKV) { p.hdr(h.Resp.Header) fmt.Printf("\"Endpoint\" : %q\n", h.Ep) fmt.Println(`"Hash" :`, h.Resp.Hash) + fmt.Println(`"HashRevision" :`, h.Resp.HashRevision) fmt.Println() } }