Pārlūkot izejas kodu

'docker node inspect <node> --pretty' needs an extra newline at the end

Signed-off-by: Misty Stanley-Jones <misty@docker.com>
Misty Stanley-Jones 8 gadi atpakaļ
vecāks
revīzija
341489f150
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      api/client/node/inspect.go

+ 2 - 0
api/client/node/inspect.go

@@ -71,6 +71,8 @@ func printHumanFriendly(out io.Writer, refs []string, getRef inspect.GetRefFunc)
 		// print extra space between objects, but not after the last one
 		if idx+1 != len(refs) {
 			fmt.Fprintf(out, "\n\n")
+		} else {
+			fmt.Fprintf(out, "\n")
 		}
 	}
 	return nil