Skip to content

Commit

Permalink
failed message can be multi line
Browse files Browse the repository at this point in the history
  • Loading branch information
asiyani committed Mar 20, 2024
1 parent 1235dc7 commit 5e9fe38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func (r *Runner) setFailedStatus(req Request, module *tfaplv1beta1.Module, reaso
module.Status.StateMessage = msg
module.Status.StateReason = reason

r.Recorder.Event(module, corev1.EventTypeWarning, reason, msg)
r.Recorder.Event(module, corev1.EventTypeWarning, reason, fmt.Sprintf("%q", msg))

if err := r.patchStatus(context.Background(), req.NamespacedName, module.Status); err != nil {
r.Log.With("module", req.NamespacedName).Error("unable to set failed status", "err", err)
Expand Down

0 comments on commit 5e9fe38

Please sign in to comment.