Commit 921b78ce authored by 黎博's avatar 黎博

修复获取pod列表异常

parent 0e153e8e
...@@ -369,8 +369,6 @@ public class K8sService { ...@@ -369,8 +369,6 @@ public class K8sService {
podMap.put("createdAt", df.parse(pod.getStatus().getStartTime())); podMap.put("createdAt", df.parse(pod.getStatus().getStartTime()));
} else { } else {
SimpleDateFormat df2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat df2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
log.info("pod.getStatus().getStartTime()为null");
log.info(pod.getStatus().toString());
podMap.put("createdAt", df2.format(new Date())); podMap.put("createdAt", df2.format(new Date()));
} }
} catch (Exception e) { } catch (Exception e) {
......
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