diff --git a/etcdctl/README.md b/etcdctl/README.md index 754a6d4fb..39a5c56bc 100644 --- a/etcdctl/README.md +++ b/etcdctl/README.md @@ -897,13 +897,13 @@ Get the status for all endpoints in the cluster associated with the default endp ```bash $ ./etcdctl endpoint hash --cluster -w table -+------------------------+------------+----------+ -| ENDPOINT | HASH | REVISION | -+------------------------+------------+----------+ -| http://127.0.0.1:2379 | 2064120424 | 13 | -| http://127.0.0.1:22379 | 2064120424 | 13 | -| http://127.0.0.1:32379 | 2064120424 | 13 | -+------------------------+------------+----------+ ++------------------------+-----------+---------------+ +| ENDPOINT | HASH | HASH REVISION | ++------------------------+-----------+---------------+ +| http://127.0.0.1:2379 | 784522900 | 16 | +| http://127.0.0.1:22379 | 784522900 | 16 | +| http://127.0.0.1:32379 | 784522900 | 16 | ++------------------------+-----------+---------------+ ``` ### ALARM \ diff --git a/etcdctl/ctlv3/command/printer.go b/etcdctl/ctlv3/command/printer.go index 97aef54f8..7cc1b887b 100644 --- a/etcdctl/ctlv3/command/printer.go +++ b/etcdctl/ctlv3/command/printer.go @@ -233,7 +233,7 @@ func makeEndpointStatusTable(statusList []epStatus) (hdr []string, rows [][]stri } func makeEndpointHashKVTable(hashList []epHashKV) (hdr []string, rows [][]string) { - hdr = []string{"endpoint", "hash", "revision"} + hdr = []string{"endpoint", "hash", "hash_revision"} for _, h := range hashList { rows = append(rows, []string{ h.Ep,