Merge pull request #9425 from HuKeping/master

inspect: format the output of docker inspect
This commit is contained in:
Victor Vieux 2014-12-01 16:51:47 -08:00
commit 65e75998af
1 changed files with 1 additions and 1 deletions

View File

@ -882,7 +882,7 @@ func (cli *DockerCli) CmdInspect(args ...string) error {
// Remove trailing ','
indented.Truncate(indented.Len() - 1)
}
indented.WriteByte(']')
indented.WriteString("]\n")
if tmpl == nil {
if _, err := io.Copy(cli.out, indented); err != nil {