Skip to content

Commit c3be244

Browse files
committed
fix(pod): sort events error
1 parent f7645a7 commit c3be244

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rootfs/scheduler/resources

rootfs/scheduler/resources/pod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def events(self, pod):
542542
events = []
543543
# make sure that events are sorted
544544
events.sort(
545-
key=lambda x: x['lastTimestamp'] if x['lastTimestamp'] else -1)
545+
key=lambda x: x['lastTimestamp'] if x['lastTimestamp'] else "")
546546
return events
547547

548548
def _handle_pod_errors(self, pod, reason, message):

0 commit comments

Comments
 (0)