Skip to content

Commit

Permalink
Sorted topics
Browse files Browse the repository at this point in the history
  • Loading branch information
psav committed Jan 21, 2022
1 parent 3adbc21 commit c0940e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/cloud.redhat.com/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"reflect"
"sort"
"strings"
"time"

Expand Down Expand Up @@ -214,6 +215,7 @@ func countKafkaTopics(ctx context.Context, pClient client.Client, o object.Clowd
}

if len(brokenTopics) > 0 {
sort.Strings(brokenTopics)
msg = fmt.Sprintf("broken topics: [%s]", strings.Join(brokenTopics, ", "))
}

Expand Down

0 comments on commit c0940e4

Please sign in to comment.