Remove container name not empty check

Signed-off-by: Megan Kostick <mkostick@us.ibm.com>
Upstream-commit: 98f857772f3be0985ab87c4bc6bd91e80e122c53
Component: engine
This commit is contained in:
Megan Kostick
2015-04-10 09:53:40 -07:00
parent 07f1e1bf7b
commit 78eb19684c
3 changed files with 12 additions and 8 deletions

View File

@ -21,6 +21,10 @@ func (cli *DockerCli) CmdDiff(args ...string) error {
cmd.Require(flag.Exact, 1)
cmd.ParseFlags(args, true)
if cmd.Arg(0) == "" {
return fmt.Errorf("Container name cannot be empty")
}
rdr, _, err := cli.call("GET", "/containers/"+cmd.Arg(0)+"/changes", nil, nil)
if err != nil {
return err