From 120c5f99644441bfef1c2cf2b4ee39f0fdcc842a Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Thu, 6 Oct 2016 12:57:17 -0400 Subject: [PATCH] Generate VolumesCreateRequest from the swagger spec. Signed-off-by: Daniel Nephin --- command/volume/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/volume/create.go b/command/volume/create.go index fbf62a5ef1..f16e650bbc 100644 --- a/command/volume/create.go +++ b/command/volume/create.go @@ -5,7 +5,7 @@ import ( "golang.org/x/net/context" - "github.com/docker/docker/api/types" + volumetypes "github.com/docker/docker/api/server/types/volume" "github.com/docker/docker/cli" "github.com/docker/docker/cli/command" "github.com/docker/docker/opts" @@ -55,7 +55,7 @@ func newCreateCommand(dockerCli *command.DockerCli) *cobra.Command { func runCreate(dockerCli *command.DockerCli, opts createOptions) error { client := dockerCli.Client() - volReq := types.VolumeCreateRequest{ + volReq := volumetypes.VolumesCreateBody{ Driver: opts.driver, DriverOpts: opts.driverOpts.GetAll(), Name: opts.name,