Commit 99ce2cd9 authored by 黎博's avatar 黎博

兼容获取pod列表,serviceName为空的清空

parent a283706a
......@@ -324,7 +324,7 @@ public class K8sService {
// 对象转列表
List<Map<String, Object>> resultList = new ArrayList<>();
for (Map<String, Object> map: podServiceMap.values()) {
if (map != null) {
if ((map != null) && (map.get("serviceName") != null)) {
resultList.add(map);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment