Merge pull request #6690 from hongchaodeng/f

etcdctl: fix migrate in outputing client.Node to json
This commit is contained in:
Gyu-Ho Lee 2016-10-20 10:50:58 -07:00 committed by GitHub
commit a47797fdf1

View File

@ -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 {