Browse Source

Merge pull request #6690 from hongchaodeng/f

etcdctl: fix migrate in outputing client.Node to json
Gyu-Ho Lee 9 years ago
parent
commit
a47797fdf1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcdctl/ctlv3/command/migrate_command.go

+ 1 - 1
etcdctl/ctlv3/command/migrate_command.go

@@ -220,7 +220,7 @@ func writeKeys(w io.Writer, n *store.NodeExtern) uint64 {
 	if err != nil {
 	if err != nil {
 		ExitWithError(ExitError, err)
 		ExitWithError(ExitError, err)
 	}
 	}
-	fmt.Fprintf(w, string(b))
+	fmt.Fprint(w, string(b))
 	for _, nn := range nodes {
 	for _, nn := range nodes {
 		max := writeKeys(w, nn)
 		max := writeKeys(w, nn)
 		if max > maxIndex {
 		if max > maxIndex {