etcdctl: changed 'revision' to 'hash_revision' in hashkv table output
Signed-off-by: Benjamin Wang <wachao@vmware.com>dependabot/go_modules/go.uber.org/atomic-1.10.0
parent
f2d765d247
commit
9a7f9609d6
|
@ -897,13 +897,13 @@ Get the status for all endpoints in the cluster associated with the default endp
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ ./etcdctl endpoint hash --cluster -w table
|
$ ./etcdctl endpoint hash --cluster -w table
|
||||||
+------------------------+------------+----------+
|
+------------------------+-----------+---------------+
|
||||||
| ENDPOINT | HASH | REVISION |
|
| ENDPOINT | HASH | HASH REVISION |
|
||||||
+------------------------+------------+----------+
|
+------------------------+-----------+---------------+
|
||||||
| http://127.0.0.1:2379 | 2064120424 | 13 |
|
| http://127.0.0.1:2379 | 784522900 | 16 |
|
||||||
| http://127.0.0.1:22379 | 2064120424 | 13 |
|
| http://127.0.0.1:22379 | 784522900 | 16 |
|
||||||
| http://127.0.0.1:32379 | 2064120424 | 13 |
|
| http://127.0.0.1:32379 | 784522900 | 16 |
|
||||||
+------------------------+------------+----------+
|
+------------------------+-----------+---------------+
|
||||||
```
|
```
|
||||||
|
|
||||||
### ALARM \<subcommand\>
|
### ALARM \<subcommand\>
|
||||||
|
|
|
@ -233,7 +233,7 @@ func makeEndpointStatusTable(statusList []epStatus) (hdr []string, rows [][]stri
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeEndpointHashKVTable(hashList []epHashKV) (hdr []string, rows [][]string) {
|
func makeEndpointHashKVTable(hashList []epHashKV) (hdr []string, rows [][]string) {
|
||||||
hdr = []string{"endpoint", "hash", "revision"}
|
hdr = []string{"endpoint", "hash", "hash_revision"}
|
||||||
for _, h := range hashList {
|
for _, h := range hashList {
|
||||||
rows = append(rows, []string{
|
rows = append(rows, []string{
|
||||||
h.Ep,
|
h.Ep,
|
||||||
|
|
Loading…
Reference in New Issue