mirror of
https://github.com/containers/podman.git
synced 2025-10-17 11:14:40 +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)
|
||||
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:]
|
||||
|
@ -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"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user