fix APIv2 pods top of non-exist pod gets two response value

Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
This commit is contained in:
zhangguanzhang committed 2020-09-09 18:50:17 +08:00
1 parent 3352e8b0e6
commit a4ffed91da
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -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
}