diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-14 15:06:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 15:06:22 +0100 |
commit | 3961882ffe9e1cb83adab483caf39a0db5b4430a (patch) | |
tree | 52823936115cfce0ba24b5196b13f06e961178d0 /pkg/api/handlers/generic/containers_create.go | |
parent | 79ec2a9a6d5d39d4f0b6253395b2434d70ba174d (diff) | |
parent | da4b8d3c645d69ee34b31adf029c7ba1e38c1bba (diff) | |
download | podman-3961882ffe9e1cb83adab483caf39a0db5b4430a.tar.gz podman-3961882ffe9e1cb83adab483caf39a0db5b4430a.tar.bz2 podman-3961882ffe9e1cb83adab483caf39a0db5b4430a.zip |
Merge pull request #4843 from baude/apiv2swagger4
swagger documentation updates
Diffstat (limited to 'pkg/api/handlers/generic/containers_create.go')
-rw-r--r-- | pkg/api/handlers/generic/containers_create.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/api/handlers/generic/containers_create.go b/pkg/api/handlers/generic/containers_create.go index ef5337abd..f98872690 100644 --- a/pkg/api/handlers/generic/containers_create.go +++ b/pkg/api/handlers/generic/containers_create.go @@ -71,11 +71,7 @@ func CreateContainer(w http.ResponseWriter, r *http.Request) { return } - type ctrCreateResponse struct { - Id string `json:"Id"` - Warnings []string `json:"Warnings"` - } - response := ctrCreateResponse{ + response := ContainerCreateResponse{ Id: ctr.ID(), Warnings: []string{}} |