summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/generic/containers_create.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/handlers/generic/containers_create.go')
-rw-r--r--pkg/api/handlers/generic/containers_create.go6
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{}}