From d68f7d88d4b03500f5eb4fa2d9d4af6da0f02c3a Mon Sep 17 00:00:00 2001 From: Zac Bergquist Date: Tue, 10 Sep 2024 07:05:48 -0600 Subject: [PATCH] Fix license stringification (#46415) The "reports usage" flag refers to legacy (Houston) usage reporting, which no longer exists. Update the string method to look at the new "Sales Center reporting" flag. This change ensures that the auth server startup logs are looking at the correct field to determine if the license has enabled usage reporting. Note: the old Houston flag sticks around for now because it exists in several repos. --- api/types/license.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/types/license.go b/api/types/license.go index b255b921ee4..8310a8a3eae 100644 --- a/api/types/license.go +++ b/api/types/license.go @@ -529,7 +529,7 @@ func (c *LicenseV3) String() string { if c.GetTrial() { features = append(features, "is trial") } - if c.GetReportsUsage() { + if c.GetSalesCenterReporting() { features = append(features, "reports usage") } if c.GetSupportsKubernetes() {