mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Add a line break when no events in describe
This commit is contained in:
parent
8f0109ea21
commit
45290af23a
@ -2129,7 +2129,7 @@ func getPodsTotalRequestsAndLimits(podList *api.PodList) (reqs map[api.ResourceN
|
|||||||
|
|
||||||
func DescribeEvents(el *api.EventList, w io.Writer) {
|
func DescribeEvents(el *api.EventList, w io.Writer) {
|
||||||
if len(el.Items) == 0 {
|
if len(el.Items) == 0 {
|
||||||
fmt.Fprint(w, "No events.")
|
fmt.Fprint(w, "No events.\n")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
sort.Sort(SortableEvents(el.Items))
|
sort.Sort(SortableEvents(el.Items))
|
||||||
|
Loading…
Reference in New Issue
Block a user