mirror of
https://github.com/containers/podman.git
synced 2026-10-10 12:14:02 -04:00
fix APIv2 pods top of non-exist pod gets two response value
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
This commit is contained in:
1 parent
3352e8b0e6
commit
a4ffed91da
2 files changed
+5
-1
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user