Skip to content

Commit dcede42

Browse files
committed
Fix formatting of blocking lifecycle hook condition message
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent 7f2a8cd commit dcede42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

exp/topology/scope/hookresponsetracker.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ func (h *HookResponseTracker) AggregateMessage() string {
9191

9292
hookAndMessages := []string{}
9393
for hook, message := range blockingHooks {
94-
hookAndMessages = append(hookAndMessages, fmt.Sprintf("hook %q is blocking: %s", hook, message))
94+
if message == "" {
95+
hookAndMessages = append(hookAndMessages, fmt.Sprintf("hook %q is blocking", hook))
96+
} else {
97+
hookAndMessages = append(hookAndMessages, fmt.Sprintf("hook %q is blocking: %s", hook, message))
98+
}
9599
}
96100
return strings.Join(hookAndMessages, "; ")
97101
}

0 commit comments

Comments
 (0)