mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-14 04:39:33 +00:00
Add missing return after utils.InternalServerError()
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
This commit is contained in:
parent
7a4bd4c954
commit
e4c38e7191
2 changed files with 5 additions and 0 deletions
|
|
@ -561,6 +561,7 @@ func PodStats(w http.ResponseWriter, r *http.Request) {
|
|||
options := entities.PodStatsOptions{All: query.All}
|
||||
if err := entities.ValidatePodStatsOptions(query.NamesOrIDs, &options); err != nil {
|
||||
utils.InternalServerError(w, err)
|
||||
return
|
||||
}
|
||||
|
||||
var flush = func() {}
|
||||
|
|
|
|||
|
|
@ -118,6 +118,10 @@ t GET libpod/pods/stats?namesOrIDs=fakename 404 \
|
|||
.cause="no such pod" \
|
||||
.message="unable to get list of pods: no pod with name or ID fakename found: no such pod"
|
||||
|
||||
t GET "libpod/pods/stats?all=true&namesOrIDs=foo" 500 \
|
||||
.cause="--all, --latest and arguments cannot be used together" \
|
||||
.message="--all, --latest and arguments cannot be used together"
|
||||
|
||||
t DELETE libpod/pods/bar?force=true 200
|
||||
|
||||
# test the fake name
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue