@@ -225,10 +225,9 @@ func BrokerCheckStatus(ctx context.Context, state *CheckBrokersState) (*action_k
225
225
for _ , c := range keys {
226
226
if ! slices .Contains (state .ExpectedChanges , c ) {
227
227
checkError = extutil .Ptr (action_kit_api.ActionKitError {
228
- Title : fmt .Sprintf ("Brokers got an unexpected change '%s' whereas '%s' is expected. Change(s) : %v " ,
228
+ Title : fmt .Sprintf ("Brokers got an unexpected change '%s' whereas '%s' is expected." ,
229
229
c ,
230
- state .ExpectedChanges ,
231
- changes ),
230
+ state .ExpectedChanges ),
232
231
Status : extutil .Ptr (action_kit_api .Failed ),
233
232
})
234
233
}
@@ -242,9 +241,8 @@ func BrokerCheckStatus(ctx context.Context, state *CheckBrokersState) (*action_k
242
241
243
242
if completed && state .StateCheckFailure {
244
243
checkError = extutil .Ptr (action_kit_api.ActionKitError {
245
- Title : fmt .Sprintf ("Brokers didn't get the expected changes '%s' at least once or got an unexpected change. Change(s) : %v" ,
246
- state .ExpectedChanges ,
247
- changes ),
244
+ Title : fmt .Sprintf ("Brokers didn't get the expected changes '%s' at least once or got an unexpected change." ,
245
+ state .ExpectedChanges ),
248
246
Status : extutil .Ptr (action_kit_api .Failed ),
249
247
})
250
248
}
@@ -281,10 +279,9 @@ func toBrokerChangeMetric(expectedChanges []string, changesNames []string, chang
281
279
sort .Strings (expectedChanges )
282
280
sort .Strings (changesNames )
283
281
282
+ state = "success"
284
283
for _ , change := range changesNames {
285
- if slices .Contains (expectedChanges , change ) {
286
- state = "success"
287
- } else {
284
+ if ! slices .Contains (expectedChanges , change ) {
288
285
state = "danger"
289
286
}
290
287
}
0 commit comments