Merge pull request #5554 from baude/compatfix

fix reported compat issues
This commit is contained in:
OpenShift Merge Robot
2020-03-19 17:34:39 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ func ListContainers(w http.ResponseWriter, r *http.Request) {
utils.InternalServerError(w, err)
return
}
if _, found := r.URL.Query()["limit"]; found {
if _, found := r.URL.Query()["limit"]; found && query.Limit != -1 {
last := query.Limit
if len(containers) > last {
containers = containers[len(containers)-last:]

View File

@ -16,7 +16,7 @@ import (
// ContainerCreateResponse is the response struct for creating a container
type ContainerCreateResponse struct {
// ID of the container created
ID string `json:"id"`
ID string `json:"Id"`
// Warnings during container creation
Warnings []string `json:"Warnings"`
}