Fix swagger volume type generation

This was broken by bf6a790f00ab96bb8857e3c73502909ee5e36217

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: b16b125bb4326e2eec9948fd54ca8c5d83eba36a
Component: engine
This commit is contained in:
Brian Goff
2018-05-14 13:46:20 -04:00
parent 70cd643c8a
commit 1cb0dc30a7
14 changed files with 29 additions and 28 deletions
@@ -23,5 +23,5 @@ swagger generate operation -f api/swagger.yaml \
-n ContainerUpdate \
-n ContainerWait \
-n ImageHistory \
-n VolumesCreate \
-n VolumesList
-n VolumeCreate \
-n VolumeList
@@ -41,7 +41,7 @@ func createTar(data map[string][]byte) (io.Reader, error) {
// which is attached to the container.
func createVolumeWithData(cli *client.Client, volumeName string, data map[string][]byte, image string) error {
_, err := cli.VolumeCreate(context.Background(),
volume.VolumesCreateBody{
volume.VolumeCreateBody{
Driver: "local",
Name: volumeName,
})
@@ -6,6 +6,7 @@
".*\\.pb\\.go",
"dockerversion/version_autogen.go",
"api/types/container/container_.*",
"api/types/volume/volume_.*",
"integration-cli/"
],
"Skip": ["integration-cli/"],