summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/libpod/pods.go
diff options
context:
space:
mode:
authorzhangguanzhang <zhangguanzhang@qq.com>2020-09-09 18:50:17 +0800
committerzhangguanzhang <zhangguanzhang@qq.com>2020-09-09 18:50:17 +0800
commita4ffed91da4b7dca459edd5b187dc587dee1086d (patch)
treecbe779f05449e6969d649b31a0842d495991021b /pkg/api/handlers/libpod/pods.go
parent3352e8b0e6bb77344a4470ef86b2d2dc6262a668 (diff)
downloadpodman-a4ffed91da4b7dca459edd5b187dc587dee1086d.tar.gz
podman-a4ffed91da4b7dca459edd5b187dc587dee1086d.tar.bz2
podman-a4ffed91da4b7dca459edd5b187dc587dee1086d.zip
fix APIv2 pods top of non-exist pod gets two response value
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'pkg/api/handlers/libpod/pods.go')
-rw-r--r--pkg/api/handlers/libpod/pods.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/pods.go b/pkg/api/handlers/libpod/pods.go
index 8f8292567..82a7299b2 100644
--- a/pkg/api/handlers/libpod/pods.go
+++ b/pkg/api/handlers/libpod/pods.go
@@ -327,7 +327,7 @@ func PodTop(w http.ResponseWriter, r *http.Request) {
name := utils.GetName(r)
pod, err := runtime.LookupPod(name)
if err != nil {
- utils.ContainerNotFound(w, name, err)
+ utils.PodNotFound(w, name, err)
return
}