From b1bd8e74241f10be30549606603bb025c9508455 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Thu, 9 Jun 2022 17:18:30 +0000 Subject: [PATCH] Use %q instead of %s --- pkg/util/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/helpers.go b/pkg/util/helpers.go index cdacd952..d58e88cd 100644 --- a/pkg/util/helpers.go +++ b/pkg/util/helpers.go @@ -28,7 +28,7 @@ func GenerateConditionChangeEvent(t string, status types.ConditionStatus, reason Severity: types.Info, Timestamp: timestamp, Reason: reason, - Message: fmt.Sprintf("Node condition %s is now: %s, reason: %s, message: %s", t, status, reason, message), + Message: fmt.Sprintf("Node condition %s is now: %s, reason: %s, message: %q", t, status, reason, message), } }