From b61c1d0d42777023a6248c6e9de4bb4877a1857b Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 3 Feb 2014 14:59:09 +0100 Subject: [PATCH] Fix docker commit output The id is returned as Id, not ID, so print the right thing. Docker-DCO-1.1-Signed-off-by: Alexander Larsson (github: alexlarsson) --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 7e512cff26..e6a9a7387c 100644 --- a/commands.go +++ b/commands.go @@ -1472,7 +1472,7 @@ func (cli *DockerCli) CmdCommit(args ...string) error { return err } - fmt.Fprintf(cli.out, "%s\n", env.Get("ID")) + fmt.Fprintf(cli.out, "%s\n", env.Get("Id")) return nil }