Use %q instead of %s

This commit is contained in:
Andrew Garrett
2022-06-09 17:18:30 +00:00
parent a39a7c6e0f
commit b1bd8e7424
+1 -1
View File
@@ -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),
}
}