Skip to content

Commit

Permalink
Fix formatting of blocking lifecycle hook condition message
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer [email protected]
  • Loading branch information
sbueringer committed Jan 10, 2025
1 parent 7f2a8cd commit dcede42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exp/topology/scope/hookresponsetracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ func (h *HookResponseTracker) AggregateMessage() string {

hookAndMessages := []string{}
for hook, message := range blockingHooks {
hookAndMessages = append(hookAndMessages, fmt.Sprintf("hook %q is blocking: %s", hook, message))
if message == "" {
hookAndMessages = append(hookAndMessages, fmt.Sprintf("hook %q is blocking", hook))
} else {
hookAndMessages = append(hookAndMessages, fmt.Sprintf("hook %q is blocking: %s", hook, message))
}
}
return strings.Join(hookAndMessages, "; ")
}

0 comments on commit dcede42

Please sign in to comment.