mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #6690 from hongchaodeng/f
etcdctl: fix migrate in outputing client.Node to json
This commit is contained in:
commit
a47797fdf1
@ -220,7 +220,7 @@ func writeKeys(w io.Writer, n *store.NodeExtern) uint64 {
|
||||
if err != nil {
|
||||
ExitWithError(ExitError, err)
|
||||
}
|
||||
fmt.Fprintf(w, string(b))
|
||||
fmt.Fprint(w, string(b))
|
||||
for _, nn := range nodes {
|
||||
max := writeKeys(w, nn)
|
||||
if max > maxIndex {
|
||||
|
Loading…
x
Reference in New Issue
Block a user