1
0
mirror of https://github.com/docker/cli.git synced 2026-01-26 15:41:42 +03:00

Merge pull request #13696 from hqhq/hq_add_comment_inspect

Add comment about inspect output
Upstream-commit: f03daf29dc311daee23deb75a770c1289f9abbe4
Component: engine
This commit is contained in:
Antonio Murdaca
2015-06-03 13:36:00 +02:00

View File

@@ -109,6 +109,9 @@ func (cli *DockerCli) CmdInspect(args ...string) error {
indented.WriteString("]\n")
if tmpl == nil {
// Note that we will always write "[]" when "-f" isn't specified,
// to make sure the output would always be array, see
// https://github.com/docker/docker/pull/9500#issuecomment-65846734
if _, err := io.Copy(cli.out, indented); err != nil {
return err
}