Skip to content

Commit

Permalink
Merge pull request #5554 from baude/compatfix
Browse files Browse the repository at this point in the history
fix reported compat issues
  • Loading branch information
openshift-merge-robot authored Mar 19, 2020
2 parents 49a7856 + d375424 commit b43e249
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/handlers/compat/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/utils/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit b43e249

Please sign in to comment.