mirror of
https://github.com/containers/podman.git
synced 2025-10-19 12:12:36 +08:00
Merge pull request #5554 from baude/compatfix
fix reported compat issues
This commit is contained in:
@ -87,7 +87,7 @@ func ListContainers(w http.ResponseWriter, r *http.Request) {
|
|||||||
utils.InternalServerError(w, err)
|
utils.InternalServerError(w, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if _, found := r.URL.Query()["limit"]; found {
|
if _, found := r.URL.Query()["limit"]; found && query.Limit != -1 {
|
||||||
last := query.Limit
|
last := query.Limit
|
||||||
if len(containers) > last {
|
if len(containers) > last {
|
||||||
containers = containers[len(containers)-last:]
|
containers = containers[len(containers)-last:]
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
// ContainerCreateResponse is the response struct for creating a container
|
// ContainerCreateResponse is the response struct for creating a container
|
||||||
type ContainerCreateResponse struct {
|
type ContainerCreateResponse struct {
|
||||||
// ID of the container created
|
// ID of the container created
|
||||||
ID string `json:"id"`
|
ID string `json:"Id"`
|
||||||
// Warnings during container creation
|
// Warnings during container creation
|
||||||
Warnings []string `json:"Warnings"`
|
Warnings []string `json:"Warnings"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user